Just return a boolean response rather than a string

This commit is contained in:
George Drummond
2019-03-19 14:05:00 -04:00
parent 1024ee0cf2
commit eafb000d58
2 changed files with 9 additions and 9 deletions

View File

@@ -213,11 +213,11 @@ def pdf_signature_validations(pdf=None, crl_check=None):
response["signatures"].append(sig)
if not sig["is_valid"]:
response["result"] = "FAILURE"
elif response["result"] is not "FAILURE":
response["result"] = "OK"
response["result"] = False
elif response["result"] is not False:
response["result"] = True
if len(signatures) == 0:
response["result"] = "FAILURE"
response["result"] = False
return response