We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cdd290 commit ff64853Copy full SHA for ff64853
src/server.py
@@ -318,6 +318,7 @@ def post(self):
318
if ALLOW_PUBLIC_BOOKMARKS:
319
username = "public"
320
else:
321
+ app.logger.debug("Rejecting attempt to store bookmark as public user")
322
return jsonify({"success": False})
323
324
args = userbookmark_parser.parse_args()
@@ -374,6 +375,8 @@ def post(self):
374
375
hexdigest = hashlib.sha224((datastr + str(random.random())).encode('utf-8')).hexdigest()[0:9]
376
attempts += 1
377
378
+ if attempts >= 100:
379
+ app.logger.debug("More than 100 failed attempts to store bookmark")
380
return jsonify({"success": attempts < 100})
381
382
@bk.route('/<key>')
0 commit comments