]> git.mxchange.org Git - fba.git/blobdiff - fetch_blocks.py
Continued:
[fba.git] / fetch_blocks.py
index c7f25f59ab36e287a8a80a68c876ffb6b3011bcb..900f1c0126593ef5ca4400a3cac7caf4e86b17df 100755 (executable)
@@ -25,7 +25,7 @@ import re
 import validators
 from fba import *
 
-boot.lock_process()
+boot.acquire_lock()
 
 fba.cursor.execute(
     "SELECT domain, software, origin, nodeinfo_url FROM instances WHERE software IN ('pleroma', 'mastodon', 'friendica', 'misskey', 'gotosocial', 'bookwyrm', 'takahe') AND (last_blocked IS NULL OR last_blocked < ?) ORDER BY rowid DESC", [time.time() - fba.config["recheck_block"]]