From 32f1d878314c641e3fea7ef854370ec29b65346b Mon Sep 17 00:00:00 2001 From: Simple_Not <44047940+moonbaseDelta@users.noreply.github.com> Date: Wed, 31 Jan 2024 23:53:00 +1000 Subject: [PATCH] pics tryout --- app.py | 6 +++--- templates/i-posts.html | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index cc7e4b6..2be9390 100644 --- a/app.py +++ b/app.py @@ -93,8 +93,7 @@ def answer_post(target_post_id): ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif', 'mp4', 'webm', 'webp'} def allowed_file(filename): - return '.' in filename and \ - filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS + return '.' in filename and filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS @app.route('/post_to_another_post/', methods=['POST']) def post_to_post(post_key): @@ -163,8 +162,9 @@ def post_to_post(post_key): #### TODO websockets +#### TODO sse #### TODO kafka -#### TODO shards +#### TODO shards #### TODO grpc diff --git a/templates/i-posts.html b/templates/i-posts.html index e1af2a8..1db4a9d 100644 --- a/templates/i-posts.html +++ b/templates/i-posts.html @@ -27,7 +27,9 @@ -->
- + + + >>{{ posto.parent_post }}