mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-14 19:27:11 +00:00
adding *ref to troggle svx parser
This commit is contained in:
@@ -266,16 +266,17 @@ class JobQueue():
|
||||
print "-- ", settings.DATABASES['default']['NAME'], settings.DATABASES['default']['ENGINE']
|
||||
|
||||
# but because the user may be expecting to add this to a db with lots of tables already there,
|
||||
# the jobque may not start from scratch so we need to initialise the db properly first.
|
||||
# the jobque may not start from scratch so we need to initialise the db properly first
|
||||
# because we are using an empty :memory: database
|
||||
# But initiating twice crashes, so be sure to do it once only.
|
||||
if ("reinit",reinit_db) not in self.queue:
|
||||
reinit_db()
|
||||
if ("dirsredirect",dirsredirect) not in self.queue:
|
||||
dirsredirect()
|
||||
if ("caves",import_caves) not in self.queue:
|
||||
import_caves()
|
||||
import_caves() # sometime extract the initialising code from this and put in reinit
|
||||
if ("people",import_people) not in self.queue:
|
||||
import_people()
|
||||
import_people() # sometime extract the initialising code from this and put in reinit
|
||||
|
||||
django.db.close_old_connections() # maybe not needed here
|
||||
|
||||
@@ -290,6 +291,7 @@ class JobQueue():
|
||||
settings.DATABASES['default']['NAME'] = dbname
|
||||
print "-- ", settings.DATABASES['default']['NAME'], settings.DATABASES['default']['ENGINE']
|
||||
|
||||
django.db.close_old_connections() # maybe not needed here
|
||||
for j in self.results_order:
|
||||
self.results[j].pop() # throw away results from :memory: run
|
||||
self.results[j].append(None) # append a placeholder
|
||||
|
||||
Reference in New Issue
Block a user