slugbucket / crossword-hints

Python Flask web application to aid decipherment of cryptic crossword clues for known setters
GNU General Public License v3.0
1 stars 0 forks source link

Remove raw SQL queries from the routes - feat0021 #25

Closed slugbucket closed 4 years ago

slugbucket commented 4 years ago

Developing the PeeWee query for searching the crossword solution table(in crossword_solution_index()) meant finding a way round the apparent limitations of querying with the ORM. This should mean that the other raw SQL queries (in crossword_solutions_show(), crossword_solutions_new() and crossowrd_hints_index() can be replaced with PeeWee model versions.

slugbucket commented 4 years ago

There were only two queries that needed updating.