mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 07:27:09 +00:00
split surveys->scans + drawings
This commit is contained in:
@@ -11,9 +11,10 @@ from django.db import transaction
|
||||
import troggle.settings
|
||||
import troggle.parsers.caves
|
||||
import troggle.parsers.people
|
||||
import troggle.parsers.surveys
|
||||
import troggle.parsers.drawings
|
||||
import troggle.parsers.logbooks
|
||||
import troggle.parsers.QMs
|
||||
import troggle.parsers.scans
|
||||
|
||||
'''Master data import.
|
||||
Used only by databaseReset.py and online controlpanel.
|
||||
@@ -33,7 +34,7 @@ def import_people():
|
||||
def import_surveyscans():
|
||||
print("-- Importing Survey Scans")
|
||||
with transaction.atomic():
|
||||
troggle.parsers.surveys.load_all_scans()
|
||||
troggle.parsers.scans.load_all_scans()
|
||||
|
||||
def import_logbooks():
|
||||
print("-- Importing Logbooks")
|
||||
@@ -67,6 +68,6 @@ def import_loadpos():
|
||||
def import_drawingsfiles():
|
||||
print("-- Importing Drawings files")
|
||||
with transaction.atomic():
|
||||
troggle.parsers.surveys.load_drawings_files()
|
||||
troggle.parsers.drawings.load_drawings_files()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user