Automatic upload time delta changed default tip

Tue, 20 Aug 2024 16:08:25 +0200

author
Claudio Dema <claudio.dema@imaa.cnr.it>
date
Tue, 20 Aug 2024 16:08:25 +0200
changeset 74
f444f0bfe7c2
parent 73
a7685a98dfcd

Automatic upload time delta changed

scc_access/scc_access.py file | annotate | diff | comparison | revisions
--- a/scc_access/scc_access.py	Sun Dec 03 16:39:00 2023 +0100
+++ b/scc_access/scc_access.py	Tue Aug 20 16:08:25 2024 +0200
@@ -1102,10 +1102,10 @@
 
 
 def automatic_upload(settings):
-    date_time_start = datetime.datetime.utcnow() - datetime.timedelta(hours=8)
+    date_time_start = datetime.datetime.utcnow() - datetime.timedelta(hours=4)
     date_time_start = date_time_start.replace(minute=0, second=0)
     start_parameter = date_time_start.strftime("%Y-%m-%dT%H:%M:%S")
-    date_time_stop = date_time_start + datetime.timedelta(hours=6)
+    date_time_stop = date_time_start + datetime.timedelta(hours=2)
     stop_parameter = date_time_stop.strftime("%Y-%m-%dT%H:%M:%S")
 
     # Altri esempi di utilizzo della libreria

mercurial