We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0ec51e commit 8b54c96Copy full SHA for 8b54c96
simulate_events.py
@@ -16,7 +16,7 @@ def generate_random_transaction(transaction_id):
16
statuses = ["approved", "declined"]
17
18
transaction = {
19
- "transaction_id": f"{datetime.now().strftime('%Y%m%d%H%M%S')}{transaction_id:05}", # Combination of timestamp and incrementing number
+ "transaction_id": f"T{datetime.now().strftime('%Y%m%d%H%M%S')}{transaction_id:05}", # Combination of timestamp and incrementing number
20
"user_id": random.choice(user_ids),
21
"timestamp": (datetime.utcnow() - timedelta(seconds=random.randint(0, 3600))).isoformat() + 'Z',
22
"amount": round(random.uniform(1.0, 1000.0), 2),
0 commit comments