diff --git a/web/app.py b/web/app.py index 8269377..ef85239 100644 --- a/web/app.py +++ b/web/app.py @@ -15,7 +15,7 @@ def root(): db = get_db() user_cookie = request.cookies.get("userid") if user_cookie is None: - user_cookie = str(random.randint(100000, 999999)) + user_cookie = str(random.randint(100_000, 999_999)) print(f"Userid was None, nieuw UID: {user_cookie}") if request.method == "POST": diff --git a/web/templates/index.html b/web/templates/index.html index e902aa7..ebe7ee1 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -5,13 +5,13 @@ - Posts + Posts
- +
{% for post in posts %} diff --git a/web/web.db b/web/web.db index 9159e5e..0d83968 100644 Binary files a/web/web.db and b/web/web.db differ