aboutsummaryrefslogtreecommitdiff
path: root/budget/web.py
diff options
context:
space:
mode:
Diffstat (limited to 'budget/web.py')
-rw-r--r--budget/web.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/budget/web.py b/budget/web.py
index e0bd60e..4e2b33f 100644
--- a/budget/web.py
+++ b/budget/web.py
@@ -123,6 +123,12 @@ def exit():
session.clear()
return redirect(url_for("home"))
+@app.route("/demo")
+def demo():
+ project = Project.query.get("demo")
+ session[project.id] = project.password
+ return redirect(url_for("list_bills", project_id=project.id))
+
@app.route("/<project_id>/invite", methods=["GET", "POST"])
def invite():