Merge branch 'main' of github.com:Discours/discours-backend into main

This commit is contained in:
2022-12-21 09:14:43 +03:00
3 changed files with 4 additions and 1 deletions

0
migration/data/.gitkeep Normal file
View File

View File

@@ -98,6 +98,8 @@ def migrate(entry):
session.query(User).filter(User.slug == user_dict["slug"]).first()
)
old_user.oid = oid
old_user.password = user_dict["password"]
session.commit()
user = old_user
if not user:
print("[migration] ERROR: cannot find user " + user_dict["slug"])