about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPjotr Prins2020-11-10 06:39:10 -0600
committerPjotr Prins2020-11-10 06:39:10 -0600
commitb3eb10770bada631c929fec83247f6fda7ef22a4 (patch)
treeefeb329a0b3a9c002198ad9ee7b4e1ad752148d8
parent986bacf77191a159d842605f6bb86f3f92a3be54 (diff)
downloadbh20-seq-resource-b3eb10770bada631c929fec83247f6fda7ef22a4.tar.gz
bh20-seq-resource-b3eb10770bada631c929fec83247f6fda7ef22a4.tar.lz
bh20-seq-resource-b3eb10770bada631c929fec83247f6fda7ef22a4.zip
virtuoso: no-cache
-rwxr-xr-xscripts/update_virtuoso/check_for_updates.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/update_virtuoso/check_for_updates.py b/scripts/update_virtuoso/check_for_updates.py
index fb66c2e..939a575 100755
--- a/scripts/update_virtuoso/check_for_updates.py
+++ b/scripts/update_virtuoso/check_for_updates.py
@@ -93,7 +93,8 @@ if no_cache or stamp != last_modified_str:
             f.write(r.text)
             f.close
     upload("metadata.ttl")
-    with open(fn,"w") as f:
-        f.write(last_modified_str)
+    if not no_cache:
+        with open(fn,"w") as f:
+            f.write(last_modified_str)
 else:
     print("Metadata is up to date")