diff options
Diffstat (limited to 'parsers/caves.py')
-rw-r--r-- | parsers/caves.py | 8 |
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. |