parsing tags

This commit is contained in:
Piotr Miller
2021-10-27 13:14:38 +02:00
parent 10a4d65d4d
commit ed0316afa6
3 changed files with 15 additions and 19 deletions

View File

@@ -117,22 +117,10 @@ def check_tree():
def check_dwl_data(*args):
print("SIGUSR1")
"""global dwl_timestamp
timestamp = datetime.now()
diff = (timestamp - dwl_timestamp).total_seconds() * 1000
if diff > 50:
common.dwl_data = load_json(common.dwl_data_file)
if common.dwl_data:
print(diff)
for item in common.dwl_instances:
item.refresh(common.dwl_data)
dwl_timestamp = datetime.now()"""
common.dwl_data = load_json(common.dwl_data_file)
if common.dwl_data:
dwl_data = load_json(common.dwl_data_file)
if dwl_data:
for item in common.dwl_instances:
item.refresh(common.dwl_data)
item.refresh(dwl_data)
return True