pics tryout
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not
2024-01-31 23:53:00 +10:00
parent 216d60c84d
commit 32f1d87831
2 changed files with 6 additions and 4 deletions

6
app.py
View File

@@ -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/<post_key>', 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