From: Roland Häder Date: Sun, 2 Jul 2023 20:27:48 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4190a8ce7398ebeaa4814e3d1befac59f02aa6c2;p=fba.git Continued: - acquire lock as this command changes database --- diff --git a/fba/commands.py b/fba/commands.py index 73814f3..68af1bb 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -1374,6 +1374,8 @@ def fetch_fedilist(args: argparse.Namespace) -> int: def update_nodeinfo(args: argparse.Namespace) -> int: logger.debug("args[]='%s' - CALLED!", type(args)) + locking.acquire() + if args.domain is not None and args.domain != "": logger.debug("Fetching args.domain='%s'", args.domain) database.cursor.execute("SELECT domain, software FROM instances WHERE domain = ?", [args.domain])