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

Remember last setter when adding new clues and solutions - feat0018 #14

Closed slugbucket closed 4 years ago

slugbucket commented 5 years ago

When entering a list of solutions from a puzzle remembering the previous setter would avoid the need to always having to select from the setters dropdown select list.

slugbucket commented 5 years ago

It might just be easier to use an AJAX submission of the solutions form, clearing the clue, solution and hint field after successful saving the new entry.

slugbucket commented 4 years ago

Found that the LDAP login was rather broken following the code refactor and that had to be fixed incidentally to the main gist of the ticket. Decided to use a session value to store the crossword setter id for reuse in later solution submissions. Then found that the view macros weren't setting the selected option in the select list because the comparison between the default value (from the session didn't match the item in the list of option values; casting the option list item to a string allowd the comparison to succeed.