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)
|
required=True)
|
||||||
uploadForm.add_argument('nsfw',
|
uploadForm.add_argument('nsfw',
|
||||||
location='headers',
|
location='headers',
|
||||||
type=bool,
|
type=str,
|
||||||
required=True)
|
required=True)
|
||||||
|
|
||||||
@api.route('/exact/<string:file_name>')
|
@api.route('/exact/<string:file_name>')
|
||||||
@ -78,6 +78,10 @@ class addFile(Resource):
|
|||||||
uploader = args['uploader']
|
uploader = args['uploader']
|
||||||
nsfw = args['nsfw']
|
nsfw = args['nsfw']
|
||||||
|
|
||||||
|
print(args)
|
||||||
|
print(nsfw)
|
||||||
|
print(str(nsfw))
|
||||||
|
|
||||||
tags = Tags.new_object_tags()
|
tags = Tags.new_object_tags()
|
||||||
tags["uploader"] = uploader
|
tags["uploader"] = uploader
|
||||||
tags["nsfw"] = str(nsfw)
|
tags["nsfw"] = str(nsfw)
|
||||||
|
Reference in New Issue
Block a user