|
|
@ -72,6 +72,9 @@ def get_all_status_logs_from_table(device): |
|
|
|
def get_all_status_changes_from_database(): |
|
|
|
def get_all_status_changes_from_database(): |
|
|
|
return get_all_status_logs() |
|
|
|
return get_all_status_logs() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_latest_status_for_all_devices(): |
|
|
|
|
|
|
|
return get_all_latest_logs() |
|
|
|
|
|
|
|
|
|
|
|
''' |
|
|
|
''' |
|
|
|
The Nitty-Gritty Functions |
|
|
|
The Nitty-Gritty Functions |
|
|
|
====================================================================== |
|
|
|
====================================================================== |
|
|
@ -198,3 +201,14 @@ def get_all_status_changes_from_database(): |
|
|
|
logs = {"device 1": d1, "device 2": d2, "device 3": d3, |
|
|
|
logs = {"device 1": d1, "device 2": d2, "device 3": d3, |
|
|
|
"device 4": d4, "device 5": d5, "device 6": d6} |
|
|
|
"device 4": d4, "device 5": d5, "device 6": d6} |
|
|
|
return logs |
|
|
|
return logs |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_all_latest_logs(): |
|
|
|
|
|
|
|
d1 = get_d1_latest() |
|
|
|
|
|
|
|
d2 = get_d2_latest() |
|
|
|
|
|
|
|
d3 = get_d3_latest() |
|
|
|
|
|
|
|
d4 = get_d4_latest() |
|
|
|
|
|
|
|
d5 = get_d5_latest() |
|
|
|
|
|
|
|
d6 = get_d6_latest() |
|
|
|
|
|
|
|
logs = {"device 1": d1, "device 2": d2, "device 3": d3, |
|
|
|
|
|
|
|
"device 4": d4, "device 5": d5, "device 6": d6} |
|
|
|
|
|
|
|
return logs |
|
|
|