)
# Generic:
- _PARSER.add_argument("--debug", action="store_const", dest="log_level", const=logging.DEBUG, help="Full debug output")
+ _PARSER.add_argument(
+ "--debug",
+ action="store_const",
+ dest="log_level",
+ const=logging.DEBUG,
+ help="Full debug output"
+ )
# Commands:
subparser_command = _PARSER.add_subparsers(
logger = logging.getLogger(__name__)
# Connect to database
+logger.debug("Opening database file blocks.db ...")
connection = sqlite3.connect("blocks.db")
# Attach trace function
#connection.set_trace_callback(print)
# Init row factory
+logger.debug("connection='%s' - setting row factory ...", connection)
connection.row_factory = sqlite3.Row
# Get cursor
elif software in ["hometown", "ecko", "fedibird", "glitchcafe"] or "되는 마스토돈" in software or "mastodon" in software:
logger.debug("Setting mastodon: software='%s'", software)
software = "mastodon"
- elif software in ["slipfox calckey", "calckey", "groundpolis", "foundkey", "cherrypick", "meisskey", "magnetar", "keybump", "dolphin", "calckey social", "azk.sns", "firefish", "qtmmsky", "iceshrimp", "owohub", "re+", "russkey", "loverskey"] or "shumihub" in software or "мисскей" in software or "milkey" in software or "misskey" in software:
+ elif software in ["slipfox calckey", "calckey", "groundpolis", "foundkey", "cherrypick", "meisskey", "magnetar", "keybump", "dolphin", "calckey social", "azk.sns", "firefish", "qtmmsky", "iceshrimp", "owohub", "re+", "russkey", "loverskey", "hajkey"] or "shumihub" in software or "мисскей" in software or "milkey" in software or "misskey" in software:
logger.debug("Setting misskey: software='%s'", software)
software = "misskey"
elif software in ["runtube.re", "islameye"]: