things.py
things.py copied to clipboard
add exact date query to enable logyesterday
to be able to cleanly implement https://github.com/thingsapi/things-cli/issues/9 an exact date match is needed in the api.
Kudos, SonarCloud Quality Gate passed! 
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
@bkleinen Thank you for the pull request and patience. :) My comments here relate to the files in things/*; @AlexanderWillner might comment on the workflows/tests.
I like the proposal, and want to offer a slight tweak. Instead of doing exact=, I'd suggest to use the following syntax:
stop_date="=2023-05-01"stop_date="<=2023-05-01"stop_date=">=2023-05-01"
Without the comparator-prefix, the defaults could then always be ">=":
start_date="2023-05-01"(same as ">=2023-05-01")stop_date="2023-05-01"(same as ">=2023-05-01")deadline="2023-05-01"(same as ">=2023-05-01")
Kudos, SonarCloud Quality Gate passed! 
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
Follow-up: Implemented this syntax but chose no operator to mean exact match, so stop_date="2023-05-01" is the same as stop_date="=2023-05-01" or stop_date="==2023-05-01"