2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 08:57:10 +00:00

Now compat with Dj2.0.13 & 1.11.29

This commit is contained in:
Philip Sargent
2021-04-06 22:50:57 +01:00
parent 05ed8af158
commit 785d6360cd
4 changed files with 102 additions and 80 deletions

View File

@@ -18,9 +18,7 @@ import troggle.parsers.QMs
def import_caves():
print("-- Importing Caves to ",end="")
print(django.db.connections.databases['default']['NAME'])
# wrap the entire import in a transaction
with transaction.atomic():
troggle.parsers.caves.readcaves()
troggle.parsers.caves.readcaves()
def import_people():
print("-- Importing People (folk.csv) to ",end="")