2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 04:07:11 +00:00

add 'users' phase into database re-import

This commit is contained in:
2025-01-21 17:58:46 +00:00
parent bb66c09498
commit 157f1fcf27

View File

@@ -427,7 +427,7 @@ def usage():
init - initialisation. Automatic if you run reset. init - initialisation. Automatic if you run reset.
caves - read in the caves (must run first after initialisation) caves - read in the caves (must run first after initialisation)
people - read in the people from folk.csv (must run after 'caves') people - read in the people from folk.csv (must run after 'caves')
users - read in registered troggle users from file (emails encrypted) users - read in registered troggle users from file (email addresses encrypted)
logbooks - read in the logbooks logbooks - read in the logbooks
QMs - read in the QM csv files (older caves only) QMs - read in the QM csv files (older caves only)
scans - the survey scans in all the wallets (must run before survex) scans - the survey scans in all the wallets (must run before survex)
@@ -502,6 +502,7 @@ if __name__ == "__main__":
elif "reset" in sys.argv: elif "reset" in sys.argv:
jq.enq("reinit", reinit_db) jq.enq("reinit", reinit_db)
jq.enq("caves", import_caves) jq.enq("caves", import_caves)
jq.enq("users", import_users)
jq.enq("people", import_people) jq.enq("people", import_people)
jq.enq("scans", import_surveyscans) jq.enq("scans", import_surveyscans)
jq.enq("logbooks", import_logbooks) jq.enq("logbooks", import_logbooks)