Skip to content

Commit

Permalink
fix weekly mail log parser (issue 2378)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiekerjan committed Apr 8, 2024
1 parent bc97e2c commit 508eb93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions management/mail_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ def print_user_table(users, data=None, sub_data=None, activity=None, latest=None
data_accum[col] += d[row]

try:
if None not in {latest, earliest}:
if None not in [latest, earliest]:
vert_pos = len(line)
e = earliest[row]
l = latest[row]
Expand Down Expand Up @@ -733,7 +733,7 @@ def print_user_table(users, data=None, sub_data=None, activity=None, latest=None
header += l.rjust(max(5, len(l) + 1, col_widths[col]))

try:
if None not in {latest, earliest}:
if None not in [latest, earliest]:
header += " │ timespan "
except TypeError:
pass
Expand All @@ -760,7 +760,7 @@ def print_user_table(users, data=None, sub_data=None, activity=None, latest=None
footer += temp.format(data_accum[row])

try:
if None not in {latest, earliest}:
if None not in [latest, earliest]:
max_l = max(latest)
min_e = min(earliest)
timespan = relativedelta(max_l, min_e)
Expand Down

0 comments on commit 508eb93

Please sign in to comment.