Fix issue with nsfw header not passing correctly
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
68a03d5229
commit
b49114da52
@ -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)
|
||||
|
Reference in New Issue
Block a user