DB refactoring

This commit is contained in:
2024-10-07 15:12:06 +02:00
parent 4c5a0c52d0
commit 34822bfc93
2 changed files with 5 additions and 4 deletions

View File

@ -326,6 +326,7 @@ def initRoutes(app: Flask):
name = email[vorname:(vorname + nachname)].capitalize()
new_user = User(email=email, name=name, id=hashedID)
db.session.add(new_user)
db.session.commit()
cookie = tokenAndCookie[1]
newDualis = Dualis(uid=hashedID, token=tokenAndCookie[0], token_created=int(time.time()))