add tests for time filter and find project, add a first check for integrity of the database
This commit is contained in:
parent
a90b992326
commit
cc14e68b44
3 changed files with 125 additions and 0 deletions
5
corrlib/integrity.py
Normal file
5
corrlib/integrity.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import datetime as dt
|
||||
|
||||
|
||||
def check_time_validity(created_at: dt.datetime, updated_at: dt.datetime) -> bool:
|
||||
return not (created_at > updated_at)
|
||||
Loading…
Add table
Add a link
Reference in a new issue