From 52cec290d99d5e5310aa479ef5d2b5cda73d5384 Mon Sep 17 00:00:00 2001 From: Sam Wenham Date: Thu, 20 Feb 2020 18:42:31 +0000 Subject: We don't want troggle trying to write out the files --- databaseReset.py | 9 --------- 1 file changed, 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 ' 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__": -- cgit v1.2.3