1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 16:48:58 +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") 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: