We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7d6201 commit 47f67b3Copy full SHA for 47f67b3
for_dict_challenges_bonus.py
@@ -50,10 +50,15 @@ def generate_chat_history():
50
"id": uuid.uuid4(),
51
"sent_at": sent_at,
52
"sent_by": random.choice(users_ids),
53
- "reply_for": random.choice([
54
- None,
55
- random.choice([m["id"] for m in messages])
56
- if messages else None]),
+ "reply_for": random.choice(
+ [
+ None,
+ (
57
+ random.choice([m["id"] for m in messages])
58
+ if messages else None
59
+ ),
60
+ ],
61
62
"seen_by": random.sample(users_ids,
63
random.randint(1, len(users_ids))),
64
"text": lorem.sentence(),
0 commit comments