Formatting
This commit is contained in:
parent
45cbc73c1a
commit
994d47a690
1 changed files with 6 additions and 2 deletions
8
main.py
8
main.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue