Skip to content
Snippets Groups Projects
Commit 74ccb70a authored by Karim Ahmed's avatar Karim Ahmed
Browse files

update conf saved without a p

parent f17aaf4e
No related branches found
No related tags found
1 merge request!155fix/Update config file is saved without a "p" at the beginning
...@@ -162,7 +162,7 @@ async def change_config(socket, config, updated_config, instrument, cycle, ...@@ -162,7 +162,7 @@ async def change_config(socket, config, updated_config, instrument, cycle,
repo.remote().pull() repo.remote().pull()
prop_dir = os.path.join(repo.working_tree_dir, cycle) prop_dir = os.path.join(repo.working_tree_dir, cycle)
os.makedirs(prop_dir, exist_ok=True) os.makedirs(prop_dir, exist_ok=True)
fpath = "{}/p{:06d}.yaml".format(prop_dir, int(proposal)) fpath = "{}/{:06d}.yaml".format(prop_dir, int(proposal))
if not os.path.exists(fpath): if not os.path.exists(fpath):
with open("{}/default.yaml".format(repo.working_tree_dir), "r") as f: with open("{}/default.yaml".format(repo.working_tree_dir), "r") as f:
defconf = yaml.load(f.read()) defconf = yaml.load(f.read())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment