mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-06 05:01:48 +02:00
Add users
This commit is contained in:
parent
1785da36f0
commit
3ecf6e172b
2 changed files with 9 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue