MaxIV-KitsControls / Elogy

GNU General Public License v3.0
7 stars 1 forks source link

Date search #12

Open johanfforsberg opened 5 years ago

johanfforsberg commented 5 years ago

Adds two date fields to the search options, one "from" and one "until". These will limit the results to those created or edited between these dates (if specified). AFAICT, the date input should be pretty well supported in browsers these days.

The "until" date is not inclusive, meaning that only entries from before that date are included. Not sure if that is intuitive, it was just the simplest to implement.

Also, there might be some complexity around timestamps, I've tried to address it but it's not well tested.

As a bonus, I've fixed the test suite, and there's now a "make test" target (assumes "pytest" is installed).