From 217bbcadb5838454314d273f1ff58bcef5653b19 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 26 Oct 2022 14:42:39 +0200 Subject: [PATCH] Run the formatter from make all --- lib/importer.py | 4 ++-- lib/user.py | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/importer.py b/lib/importer.py index 0b612f1..beb5fa5 100644 --- a/lib/importer.py +++ b/lib/importer.py @@ -12,9 +12,9 @@ from lib.history import History from lib.obs import OBS from lib.obs_revision import OBSRevision from lib.proxy_sha256 import ProxySHA256, md5, sha256 -import xml.etree.ElementTree as ET -from lib.user import User from lib.tree_builder import TreeBuilder +from lib.user import User + def _files_hash(hash_alg, dirpath): """List of (filepath, md5) for a directory""" diff --git a/lib/user.py b/lib/user.py index 68fe415..705e557 100644 --- a/lib/user.py +++ b/lib/user.py @@ -1,4 +1,4 @@ -FAKE_ACCOUNTS = ('unknown', 'buildservice-autocommit', 'autobuild', '_service') +FAKE_ACCOUNTS = ("unknown", "buildservice-autocommit", "autobuild", "_service") class User: @@ -44,7 +44,9 @@ class User: cur.execute( """SELECT DISTINCT revisions.userid FROM revisions LEFT JOIN users ON revisions.userid = users.userid - WHERE users.userid IS NULL AND revisions.userid NOT IN {}""".format(FAKE_ACCOUNTS) + WHERE users.userid IS NULL AND revisions.userid NOT IN {}""".format( + FAKE_ACCOUNTS + ) ) missing_users = [row[0] for row in cur.fetchall()] return missing_users