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: