Skip to content

Commit

Permalink
fingerprint endpoint: lower confidence score, make test easier
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelmhm committed Oct 8, 2024
1 parent 907f0be commit 3c01bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spidyquotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def fingerprint_check():
result = data['result']
confidenceScore = result['confidence']['score']
clicked = data.get('clicked')
if confidenceScore >= 0.6 and clicked:
if confidenceScore >= 0.4 and clicked:
response = make_response(jsonify({"allowed": True}))
expire_time = datetime.datetime.utcnow() + datetime.timedelta(seconds=30)
response.set_cookie('score', value=str(confidenceScore),
Expand Down

0 comments on commit 3c01bd5

Please sign in to comment.