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