store difference of vehicle data to file
This commit is contained in:
@@ -35,8 +35,10 @@ def create_timestamp():
|
||||
|
||||
|
||||
def date_has_changed(d1: dict, d2: dict, fields=['year', 'month', 'day']):
|
||||
count = 0
|
||||
if d1 is None or d2 is None:
|
||||
return True
|
||||
|
||||
count = 0
|
||||
try:
|
||||
for field in fields:
|
||||
if d1[field] != d2[field]:
|
||||
|
||||
Reference in New Issue
Block a user