1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-09-27 14:43:04 +00:00

ordre accounts randomly so we don't always do them in the same order

This commit is contained in:
Lynne Megido 2019-09-06 12:39:51 +10:00
parent 9ccd5586bf
commit fc45f4c4c0

View file

@ -95,7 +95,7 @@ db = MySQLdb.connect(
print("Downloading posts")
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()
cursor.close()
with Pool(8) as p: