diff --git a/export.py b/export.py index 1479034..55b07f7 100644 --- a/export.py +++ b/export.py @@ -12,7 +12,7 @@ def export(outfile="out.csv"): docs = es.stream_all_docs() docs_with_website = db.join_website_on_scan(docs) - print("Connected") + print("Connected, writing to csv") with open(outfile + ".temp", "w") as out: @@ -29,7 +29,7 @@ def export(outfile="out.csv"): doc["_source"]["mtime"]]) print("Wrote to csv, compressing with xz") - os.system("xz " + outfile + ".temp") + os.system("xz -0 " + outfile + ".temp") os.system("mv " + outfile + ".temp.xz " + outfile + ".xz") print("Compressed to " + str(os.path.getsize(outfile + ".xz")) + " bytes") diff --git a/templates/downloads.html b/templates/downloads.html index 49c5f59..c4b5ce8 100644 --- a/templates/downloads.html +++ b/templates/downloads.html @@ -8,7 +8,7 @@
Downloads
-

The entire database is exported to CSV every ±30min

+

The entire database is exported to CSV regularly

@@ -25,7 +25,7 @@ - + {% endif %}
out.csv.xz {{ export_file_stats.st_size |filesizeformat }}{{ export_file_stats.st_mtime|date_format }}{{ export_file_stats.st_mtime|datetime_format }}