master
James Sigurðarson 2016-08-20 23:16:38 +01:00
parent 0b53ba5dea
commit 5697d696dd
1 changed files with 2 additions and 1 deletions

View File

@ -112,8 +112,9 @@ def scan_challenges_stage(d, files):
data = yaml.load(f)
query = Stage.select().where(Stage.alias == data["alias"])
if query.exists():
print("Updating %s..." % (data["name"]))
print("Updating %s..." % (data["alias"]))
q = Stage.update(**data).where(Stage.alias == data["alias"])
q.execute()
else:
Stage.create(**data)