mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-14 19:47:12 +00:00
bug fix for server
This commit is contained in:
@@ -730,11 +730,14 @@ def read_cave(filename, cave=None):
|
||||
|
||||
def add_cave_to_pending_list(id):
|
||||
fpending = Path(CAVEDESCRIPTIONS, "pendingcaves.txt")
|
||||
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.
|
||||
try:
|
||||
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.
|
||||
except:
|
||||
pass
|
||||
|
||||
def readcaves():
|
||||
"""Called from databaseReset mass importer.
|
||||
|
||||
Reference in New Issue
Block a user