mirror of
https://github.com/csd4ni3l/loginween.git
synced 2026-01-01 12:33:49 +01:00
Modularize pumpkin.js so it's easy to adapt, make main fetch posts(no creation yet), add very coooool countdown to Halloween with pumpkin carving visualization
This commit is contained in:
8
app.py
8
app.py
@@ -71,9 +71,15 @@ def main():
|
||||
|
||||
cur.execute("SELECT * FROM Posts LIMIT 20")
|
||||
|
||||
posts = cur.fetchall()
|
||||
|
||||
cur.close()
|
||||
|
||||
return render_template("index.jinja2", username=username)
|
||||
return render_template("index.jinja2", username=username, posts=posts)
|
||||
|
||||
@app.route("/countdown")
|
||||
def countdown():
|
||||
return render_template("countdown.jinja2", logged_in=flask_login.current_user.is_authenticated, grid_size=os.getenv("GRID_SIZE", 15))
|
||||
|
||||
@app.route("/login", methods=["GET", "POST"])
|
||||
def login():
|
||||
|
||||
Reference in New Issue
Block a user