mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-11-25 08:38:59 +00:00
ordre accounts randomly so we don't always do them in the same order
This commit is contained in:
parent
9ccd5586bf
commit
fc45f4c4c0
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ db = MySQLdb.connect(
|
||||||
print("Downloading posts")
|
print("Downloading posts")
|
||||||
|
|
||||||
cursor = db.cursor()
|
cursor = db.cursor()
|
||||||
cursor.execute("SELECT `handle`, `outbox` FROM `fedi_accounts`")
|
cursor.execute("SELECT `handle`, `outbox` FROM `fedi_accounts` ORDER BY RAND()")
|
||||||
accounts = cursor.fetchall()
|
accounts = cursor.fetchall()
|
||||||
cursor.close()
|
cursor.close()
|
||||||
with Pool(8) as p:
|
with Pool(8) as p:
|
||||||
|
|
Loading…
Reference in a new issue