Compare commits
3 Commits
327180d106
...
162ce08447
Author | SHA1 | Date | |
---|---|---|---|
162ce08447 | |||
8e01e1484e | |||
b569a1ea15 |
@ -44,5 +44,3 @@ for path, image in resized_images:
|
|||||||
current_image_number += 1
|
current_image_number += 1
|
||||||
if current_col == cols:
|
if current_col == cols:
|
||||||
current_col = 0
|
current_col = 0
|
||||||
|
|
||||||
new_image.show()
|
|
||||||
|
@ -63,7 +63,7 @@ def dump():
|
|||||||
users.sort()
|
users.sort()
|
||||||
for user in users:
|
for user in users:
|
||||||
mention_text = f"@{user}"
|
mention_text = f"@{user}"
|
||||||
line = f"{user} is {all_content.count(mention_text)} times mentioned on devRant(developer comminity)."
|
line = f"{user} is {all_content.count(mention_text)} times mentioned on devRant(developer community)."
|
||||||
printr(line)
|
printr(line)
|
||||||
print(line)
|
print(line)
|
||||||
print("```")
|
print("```")
|
||||||
|
@ -32,7 +32,7 @@ async def get_recent_rants(start_from=1, page_size=10):
|
|||||||
def get_rants():
|
def get_rants():
|
||||||
return dr.get_rants("recent", page_size, start_from)["rants"]
|
return dr.get_rants("recent", page_size, start_from)["rants"]
|
||||||
|
|
||||||
rants = asyncio.wait_for(loop.run_in_executor(get_rants), 5)
|
rants = asyncio.wait_for(loop.run_in_executor(None,get_rants), 15)
|
||||||
|
|
||||||
page += 1
|
page += 1
|
||||||
for rant in rants:
|
for rant in rants:
|
||||||
|
Loading…
Reference in New Issue
Block a user