Formatting

This commit is contained in:
Firepup Sixfifty 2024-06-05 13:05:57 -05:00
parent 45cbc73c1a
commit 994d47a690
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA

View file

@ -50,7 +50,9 @@ except ImportError:
cursor = data["response_metadata"]["next_cursor"] cursor = data["response_metadata"]["next_cursor"]
users_list.extend(data["members"]) users_list.extend(data["members"])
pages += 1 pages += 1
print(f"[INFO] Pages of users loaded: {pages} (Estimated user count: {len(pages) * 1000}") print(
f"[INFO] Pages of users loaded: {pages} (Estimated user count: {len(pages) * 1000}"
)
del pages del pages
print("[INFO] Building user mappings now, this shouldn't take long...") print("[INFO] Building user mappings now, this shouldn't take long...")
for ( for (
@ -99,7 +101,9 @@ if __name__ == "__main__":
) )
messages = res["messages"] messages = res["messages"]
texts = {} texts = {}
print("[INFO] Building messages, this might take a little bit...") print(
"[INFO] Building messages, this might take a little bit..."
)
for i in range(len(messages)): for i in range(len(messages)):
label = f'{messages[i]["text"]} ({messages[i]["ts"]})' label = f'{messages[i]["text"]} ({messages[i]["ts"]})'
for user in userMappings: for user in userMappings: