|
|
@@ -119,9 +119,9 @@ def nd_qxz_data(device_ids, start, end):
|
|
|
|
|
|
|
|
|
|
|
|
-def main():
|
|
|
- start_year = datetime(2025, 1, 1, 0, 0, 0).timestamp()
|
|
|
- end_year = datetime(2026, 1, 2, 0, 0, 0).timestamp()
|
|
|
+def main(start_y, end_y):
|
|
|
+ start_year = datetime(start_y, 1, 1, 0, 0, 0).timestamp()
|
|
|
+ end_year = datetime(end_y, 1, 1, 0, 0, 0).timestamp()
|
|
|
device_addr = device_aggrate()
|
|
|
for i in device_addr:
|
|
|
device_ids = i.get("device_ids")
|
|
|
@@ -175,4 +175,4 @@ def main():
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
- main()
|
|
|
+ main(2024, 2025)
|