Run the formatter from make all
This commit is contained in:
parent
1346223822
commit
217bbcadb5
@ -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"""
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user