summaryrefslogtreecommitdiffstats
path: root/parsers/caves.py
diff options
context:
space:
mode:
Diffstat (limited to 'parsers/caves.py')
-rw-r--r--parsers/caves.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/parsers/caves.py b/parsers/caves.py
index b68eee0..8a746ac 100644
--- a/parsers/caves.py
+++ b/parsers/caves.py
@@ -726,9 +726,11 @@ def read_cave(filename, cave=None):
def add_cave_to_pending_list(id):
fpending = Path(CAVEDESCRIPTIONS, "pendingcaves.txt")
- if fpending.is_file():
- with open(fpending, "a") as pend:
- pend.write(f"{id}\n")
+ if settings.DBSWITCH == "sqlite": # dev machine only
+ if fpending.is_file():
+ with open(fpending, "a") as pend:
+ pend.write(f"{id}\n")
+ # now need to do the git commit thing if running on server.
def readcaves():
"""Called from databaseReset mass importer.