1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-04-15 23:47:24 +02:00

Fixed RUF010 (explicit-f-string-type-conversion): Use explicit conversion flag

This commit is contained in:
Teal Dulcet
2023-12-22 07:42:13 -08:00
committed by Joshua Tauberer
parent c719fce40a
commit 15bddcbc39
2 changed files with 2 additions and 2 deletions

View File

@@ -670,7 +670,7 @@ def print_user_table(users, data=None, sub_data=None, activity=None, latest=None
col_str = str_temp.format(d[row][:31] + "" if len(d[row]) > 32 else d[row])
col_left[col] = True
elif isinstance(d[row], datetime.datetime):
col_str = f"{str(d[row]):<20}"
col_str = f"{d[row]!s:<20}"
col_left[col] = True
else:
temp = "{:>%s}" % max(5, len(l) + 1, len(str(d[row])) + 1)