Add users

This commit is contained in:
Nicolas Vanvyve 2019-12-10 10:17:55 +01:00
parent 1785da36f0
commit 3ecf6e172b
2 changed files with 9 additions and 2 deletions

View file

@ -247,6 +247,7 @@ def get_members(file):
return members_list
def same_bill(bill1, bill2):
attr = ["what", "payer_name", "payer_weight", "amount", "date", "owers"]
for a in attr:

View file

@ -437,6 +437,12 @@ def import_project(file):
if not same:
bill_to_add.append(j)
# Add to DB
for m in members_to_add:
Person(name=m[0], project=g.project, weight=m[1])
db.session.commit()
@main.route("/<project_id>/delete")
def delete_project():
g.project.remove_project()