Commit 52cb8916 authored by Mattia Rizzolo's avatar Mattia Rizzolo

sitechecks: specify how to sort Person objects

  File /srv/, line 39, in run_stats
    for person, inconsistencies in sorted(by_person.items()):
TypeError: '<' not supported between instances of 'Person' and 'Person'
Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <>
parent 6eff25cb
Pipeline #82255 passed with stage
in 3 minutes and 57 seconds
......@@ -36,7 +36,7 @@ class ReportInconsistencies(hk.Task):
log.warn("Active inconsistency after this maintenance run:")
for person, inconsistencies in sorted(by_person.items()):
for person, inconsistencies in sorted(by_person.items(), key=lambda p: p.lookup_key):
if person is None:
log.warn("General inconsistencies:")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment