things.py
things.py copied to clipboard
fix today() failing if start_date is None - fixes #119
simply added an "or today" to prevent result.sort from failing.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
:warning: Please install the to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 99.32%. Comparing base (
41f0112
) to head (d48d7fe
). Report is 82 commits behind head on main.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@ Coverage Diff @@
## main #120 +/- ##
===========================================
- Coverage 100.00% 99.32% -0.68%
===========================================
Files 2 3 +1
Lines 363 444 +81
===========================================
+ Hits 363 441 +78
- Misses 0 3 +3
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@bkleinen Thanks for the pull request.
Two notes:
- To reproduce in Things, how do I make a task in Today where
task['start_date']
is None? - In Python, you can do
datetime.datetime.today().date().isoformat()
.
@bkleinen In case this got lost, I'd like to repeat the question from https://github.com/thingsapi/things.py/issues/119 and the comment above. If I don't hear back within a week, I'll close this.
@bkleinen Closing this due to no answers coming back. Happy to open again once you return. (/cc @AlexanderWillner)