store difference of vehicle data to file

This commit is contained in:
2024-10-18 19:06:32 +02:00
parent 65849ccfe3
commit b1b9a7d385
3 changed files with 90 additions and 13 deletions
+3 -1
View File
@@ -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]: