mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 09:07:09 +00:00
Associate correct schema when recreating a survey
This commit is contained in:
@@ -61,13 +61,13 @@ os.system(cmd)
|
||||
#cmd = f"psql dougal -c 'DROP schema {schema} CASCADE;'"
|
||||
#print(cmd)
|
||||
|
||||
for survey in configuration.surveys():
|
||||
for survey in configuration.surveys(include_archived=True):
|
||||
id = survey["id"].lower()
|
||||
name = survey["name"]
|
||||
epsg = survey["epsg"]
|
||||
schema = survey["schema"]
|
||||
|
||||
cmd = f"{create_survey} \"{id}\" \"{name}\" {epsg}"
|
||||
cmd = f"SCHEMA_NAME={schema} {create_survey} \"{id}\" \"{name}\" {epsg}"
|
||||
print(cmd)
|
||||
os.system(cmd)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user