1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

create the db in any case when loading the module

This commit is contained in:
Alexis Metaireau 2011-03-10 17:05:34 +00:00
parent 4947a99c3a
commit fc569241be

View file

@ -51,6 +51,7 @@ class BillOwer(db.Model):
bill = db.relationship(Bill, backref=db.backref('owers', order_by=name)) bill = db.relationship(Bill, backref=db.backref('owers', order_by=name))
db.create_all()
# define forms # define forms
class BillForm(Form): class BillForm(Form):
@ -126,5 +127,4 @@ def reset_bills():
if __name__ == '__main__': if __name__ == '__main__':
db.create_all()
app.run(host="0.0.0.0", debug=True) app.run(host="0.0.0.0", debug=True)