mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-06 13:01:50 +02:00
ran black
This commit is contained in:
parent
e1632af0b5
commit
89d0f75069
1 changed files with 4 additions and 3 deletions
|
@ -705,14 +705,15 @@ def delete_bill(bill_id):
|
||||||
|
|
||||||
url = url_for(".undo_delete_bill")
|
url = url_for(".undo_delete_bill")
|
||||||
alert = (
|
alert = (
|
||||||
'The bill has been deleted <a class="alert-link" href="'
|
'The bill has been deleted <a class="alert-link" href="'
|
||||||
+ url
|
+ url
|
||||||
+ '" id="undo"> undo </a>'
|
+ '" id="undo"> undo </a>'
|
||||||
)
|
)
|
||||||
flash(Markup(alert))
|
flash(Markup(alert))
|
||||||
|
|
||||||
return redirect(url_for(".list_bills"))
|
return redirect(url_for(".list_bills"))
|
||||||
|
|
||||||
|
|
||||||
@main.route("/<project_id>/undo")
|
@main.route("/<project_id>/undo")
|
||||||
def undo_delete_bill():
|
def undo_delete_bill():
|
||||||
bill = Bill()
|
bill = Bill()
|
||||||
|
|
Loading…
Reference in a new issue