mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
Use better random generation of shakespeare lines.
(imported from commit f979a8476f6fd925b9041e15dd38a9c261341be9)
This commit is contained in:
@@ -210,7 +210,7 @@ def send_zephyrs(data):
|
|||||||
from django.db import connection
|
from django.db import connection
|
||||||
connection.close()
|
connection.close()
|
||||||
texts = file("zephyr/management/commands/test_zephyrs.txt", "r").readlines()
|
texts = file("zephyr/management/commands/test_zephyrs.txt", "r").readlines()
|
||||||
offset = 0
|
offset = random.randint(0, len(texts))
|
||||||
|
|
||||||
recipient_classes = [klass.id for klass in
|
recipient_classes = [klass.id for klass in
|
||||||
Recipient.objects.filter(type=Recipient.CLASS)]
|
Recipient.objects.filter(type=Recipient.CLASS)]
|
||||||
|
|||||||
Reference in New Issue
Block a user