commit editor changes to db

This commit is contained in:
yamanq 2018-04-16 20:47:36 -04:00
parent 88ed4d9886
commit 0d03cd67d4

View File

@ -231,6 +231,8 @@ def editors():
user = Editor(authority = received[authority],
username = received[username],
password = received[password])
db.session.add(user)
db.session.commit()
return user
else:
return "Bad Request"