summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Wenham <sam@wenhams.co.uk>2020-02-20 18:42:31 +0000
committerSam Wenham <sam@wenhams.co.uk>2020-02-20 18:42:31 +0000
commit52cec290d99d5e5310aa479ef5d2b5cda73d5384 (patch)
tree0ec976df922aa911ec4f52313905c6ade370ee24
parenta559151c579ef77de08e9c0dc70ee3d244a6b6ae (diff)
downloadtroggle-52cec290d99d5e5310aa479ef5d2b5cda73d5384.tar.gz
troggle-52cec290d99d5e5310aa479ef5d2b5cda73d5384.tar.bz2
troggle-52cec290d99d5e5310aa479ef5d2b5cda73d5384.zip
We don't want troggle trying to write out the files
-rw-r--r--databaseReset.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/databaseReset.py b/databaseReset.py
index a242b81..d714d9f 100644
--- a/databaseReset.py
+++ b/databaseReset.py
@@ -159,12 +159,6 @@ def pageredirects():
f = troggle.flatpages.models.Redirect(originalURL = oldURL, newURL = newURL)
f.save()
-def writeCaves():
- for cave in Cave.objects.all():
- cave.writeDataFile()
- for entrance in Entrance.objects.all():
- entrance.writeDataFile()
-
def usage():
print("""Usage is 'python databaseReset.py <command>'
where command is:
@@ -182,9 +176,6 @@ def usage():
survexpos
surveys
tunnel - read in the Tunnel files
- writeCaves
- - read in - always means read from files and put the information into the database
- - write out - always means create the auto-generated files from the database
""")
if __name__ == "__main__":