From 596057dd0a4fa87a5ea3f4cc65240ab0b3f2bd8d Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 30 Jun 2022 20:40:34 -0700 Subject: [PATCH] =?UTF-8?q?populate=5Fdb:=20Spell=20=E2=80=9Cstickiness?= =?UTF-8?q?=E2=80=9D=20correctly.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Anders Kaseorg (cherry picked from commit f27a709a5e8757761d01f90614e069219a2fd000) --- zilencer/management/commands/populate_db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zilencer/management/commands/populate_db.py b/zilencer/management/commands/populate_db.py index d74f0e1acd..03b97b2433 100644 --- a/zilencer/management/commands/populate_db.py +++ b/zilencer/management/commands/populate_db.py @@ -249,7 +249,7 @@ class Command(BaseCommand): ) parser.add_argument( - "--stickyness", + "--stickiness", type=float, default=20, help="The percent of messages to repeat recent folks.", @@ -1032,7 +1032,7 @@ def generate_and_send_messages( randkey = random.randint(1, random_max) if ( num_messages > 0 - and random.randint(1, random_max) * 100.0 / random_max < options["stickyness"] + and random.randint(1, random_max) * 100.0 / random_max < options["stickiness"] ): # Use an old recipient message_type, recipient_id, saved_data = recipients[num_messages - 1]