diff options
author | Pjotr Prins | 2020-11-10 06:39:10 -0600 |
---|---|---|
committer | Pjotr Prins | 2020-11-10 06:39:10 -0600 |
commit | b3eb10770bada631c929fec83247f6fda7ef22a4 (patch) | |
tree | efeb329a0b3a9c002198ad9ee7b4e1ad752148d8 /scripts/update_virtuoso | |
parent | 986bacf77191a159d842605f6bb86f3f92a3be54 (diff) | |
download | bh20-seq-resource-b3eb10770bada631c929fec83247f6fda7ef22a4.tar.gz bh20-seq-resource-b3eb10770bada631c929fec83247f6fda7ef22a4.tar.lz bh20-seq-resource-b3eb10770bada631c929fec83247f6fda7ef22a4.zip |
virtuoso: no-cache
Diffstat (limited to 'scripts/update_virtuoso')
-rwxr-xr-x | scripts/update_virtuoso/check_for_updates.py | 5 |
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") |