Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -224,9 +224,12 @@ async def count_forum_threads(ctx, time: int):
|
|
224 |
async for message in thread.history(limit=None, after=start_date, before=end_date):
|
225 |
print(f"THREAD NAME: {thread.name}")
|
226 |
forum_thread_message_count += 1
|
227 |
-
|
|
|
228 |
print(f"ARCHIVED THREAD NAME: {thread.name}")
|
229 |
-
forum_thread_message_count += 1
|
|
|
|
|
230 |
print(f'Total forum_thread_messages between {start_date} and {end_date}: {forum_thread_message_count}')
|
231 |
|
232 |
|
|
|
224 |
async for message in thread.history(limit=None, after=start_date, before=end_date):
|
225 |
print(f"THREAD NAME: {thread.name}")
|
226 |
forum_thread_message_count += 1
|
227 |
+
"""
|
228 |
+
async for thread in forum.archived_threads(limit=None, before=end_date):
|
229 |
print(f"ARCHIVED THREAD NAME: {thread.name}")
|
230 |
+
forum_thread_message_count += 1
|
231 |
+
"""
|
232 |
+
|
233 |
print(f'Total forum_thread_messages between {start_date} and {end_date}: {forum_thread_message_count}')
|
234 |
|
235 |
|