Implement a reviewer blacklist in the importer and add "alice" in
genart to it - Legacy-Id: 12170
This commit is contained in:
parent
2ce2f8d067
commit
d95be38ee7
|
@ -66,6 +66,8 @@ autopolicy_days = {
|
|||
'quarterly': 91,
|
||||
}
|
||||
|
||||
reviewer_blacklist = set([("genart", "alice")])
|
||||
|
||||
known_personnel = {}
|
||||
with db_con.cursor() as c:
|
||||
c.execute("select * from members;")
|
||||
|
@ -76,6 +78,9 @@ with db_con.cursor() as c:
|
|||
if row.login not in needed_personnel:
|
||||
continue
|
||||
|
||||
if (team.acronym, row.login) in reviewer_blacklist:
|
||||
continue # ignore
|
||||
|
||||
email = Email.objects.filter(address=row.email).select_related("person").first()
|
||||
if not email:
|
||||
person = Person.objects.filter(alias__name=row.name).first()
|
||||
|
@ -241,6 +246,9 @@ with db_con.cursor() as c:
|
|||
latest_iesg_status = None
|
||||
|
||||
for row in rows:
|
||||
if (team.acronym, row.who) in reviewer_blacklist:
|
||||
continue # ignore
|
||||
|
||||
state = None
|
||||
used = False
|
||||
|
||||
|
@ -355,6 +363,9 @@ with db_con.cursor() as c:
|
|||
if (team.acronym, row.docname) in document_blacklist:
|
||||
continue # ignore
|
||||
|
||||
if (team.acronym, row.reviewer) in reviewer_blacklist:
|
||||
continue # ignore
|
||||
|
||||
meta = doc_metadata.get((row.docname, row.version))
|
||||
if not meta:
|
||||
meta = doc_metadata.get(row.docname)
|
||||
|
|
Loading…
Reference in a new issue