mirror of
https://github.com/ProjectSynthoria/SynthoriaArchive.git
synced 2025-03-12 23:36:54 +02:00
Wait, that was no dict at all! Fix v1 api default
This commit is contained in:
parent
0e57378359
commit
7066fb258e
1 changed files with 2 additions and 1 deletions
|
@ -93,7 +93,8 @@ def api_upload(upload_request, user):
|
|||
else:
|
||||
form_info_as_dict.append((k, v))
|
||||
# Hack for while v1 is still being used: default trusted to true
|
||||
form_info_as_dict.setdefault('is_trusted', True)
|
||||
if not [x for x in form_info_as_dict if x[0] == 'is_trusted']:
|
||||
form_info_as_dict.append(('is_trusted', True))
|
||||
form_info = ImmutableMultiDict(form_info_as_dict)
|
||||
except Exception as e:
|
||||
return flask.make_response(flask.jsonify(
|
||||
|
|
Loading…
Add table
Reference in a new issue