stop archiving (upstream has), cut boundaries for countries
This commit is contained in:
16
coronavis.py
16
coronavis.py
@@ -89,14 +89,14 @@ def get_data():
|
||||
f.write(r.content)
|
||||
|
||||
## file archiving: include error log just in case…
|
||||
try:
|
||||
subprocess.run(["/usr/bin/cp", f"../{date}-full-data.csv", "data.csv"], cwd="/srv/http/dukun.de/corona/data/git")
|
||||
subprocess.run(["/usr/bin/git", "commit", "-a", f"-m {date}"], cwd="/srv/http/dukun.de/corona/data/git")
|
||||
subprocess.run(["/usr/bin/git", "push"], cwd="/srv/http/dukun.de/corona/data/git")
|
||||
except Exception as e:
|
||||
print(f"File archiving failed with {e} - need for debugging here…")
|
||||
print(e.with_traceback)
|
||||
print("\n\n\ncontinuing…\n")
|
||||
#try:
|
||||
# subprocess.run(["/usr/bin/cp", f"../{date}-full-data.csv", "data.csv"], cwd="/srv/http/dukun.de/corona/data/git")
|
||||
# subprocess.run(["/usr/bin/git", "commit", "-a", f"-m {date}"], cwd="/srv/http/dukun.de/corona/data/git")
|
||||
# subprocess.run(["/usr/bin/git", "push"], cwd="/srv/http/dukun.de/corona/data/git")
|
||||
#except Exception as e:
|
||||
# print(f"File archiving failed with {e} - need for debugging here…")
|
||||
# print(e.with_traceback)
|
||||
# print("\n\n\ncontinuing…\n")
|
||||
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user