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:
parent
4947a99c3a
commit
fc569241be
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue