Skip to content

Commit babba89

Browse files
committed
Make sogs also display the number of users active in the last day.
Add a missing comma.
1 parent e1b0523 commit babba89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sogs/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def print_room(room: Room):
169169
msgs_size /= 1_000_000
170170
files_size /= 1_000_000
171171

172-
active = [room.active_users_last(x * 86400) for x in (7, 14, 30)]
172+
active = [room.active_users_last(x * 86400) for x in (1, 7, 14, 30)]
173173
m, a, hm, ha = room.get_all_moderators()
174174
admins = len(a) + len(ha)
175175
mods = len(m) + len(hm)
@@ -183,7 +183,7 @@ def print_room(room: Room):
183183
URL: {config.URL_BASE}/{room.token}?public_key={crypto.server_pubkey_hex}
184184
Messages: {msgs} ({msgs_size:.1f} MB)
185185
Attachments: {files} ({files_size:.1f} MB)
186-
Active users: {active[0]} (7d), {active[1]} (14d) {active[2]} (30d)
186+
Active users: {active[0]} (1d), {active[1]} (7d), {active[2]} (14d), {active[3]} (30d)
187187
Moderators: {admins} admins ({len(ha)} hidden), {mods} moderators ({len(hm)} hidden)""",
188188
end='',
189189
)

0 commit comments

Comments
 (0)