Fix issue with nsfw header not passing correctly
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tyler Perkins 2023-03-26 15:24:49 -04:00
parent 68a03d5229
commit b49114da52

View File

@ -39,7 +39,7 @@ uploadForm.add_argument('uploader',
required=True)
uploadForm.add_argument('nsfw',
location='headers',
type=bool,
type=str,
required=True)
@api.route('/exact/<string:file_name>')
@ -78,6 +78,10 @@ class addFile(Resource):
uploader = args['uploader']
nsfw = args['nsfw']
print(args)
print(nsfw)
print(str(nsfw))
tags = Tags.new_object_tags()
tags["uploader"] = uploader
tags["nsfw"] = str(nsfw)