mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 09:27:07 +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;'"
|
#cmd = f"psql dougal -c 'DROP schema {schema} CASCADE;'"
|
||||||
#print(cmd)
|
#print(cmd)
|
||||||
|
|
||||||
for survey in configuration.surveys():
|
for survey in configuration.surveys(include_archived=True):
|
||||||
id = survey["id"].lower()
|
id = survey["id"].lower()
|
||||||
name = survey["name"]
|
name = survey["name"]
|
||||||
epsg = survey["epsg"]
|
epsg = survey["epsg"]
|
||||||
schema = survey["schema"]
|
schema = survey["schema"]
|
||||||
|
|
||||||
cmd = f"{create_survey} \"{id}\" \"{name}\" {epsg}"
|
cmd = f"SCHEMA_NAME={schema} {create_survey} \"{id}\" \"{name}\" {epsg}"
|
||||||
print(cmd)
|
print(cmd)
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user