From 5a3bf57a32a2df3fd5a6e7248550125fd8b7afd0 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Mon, 15 Nov 2021 22:12:40 -0800 Subject: [PATCH] fix bug where tx_fail string was too long --- wowstash/blueprints/wallet/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wowstash/blueprints/wallet/routes.py b/wowstash/blueprints/wallet/routes.py index b63c226..1496897 100644 --- a/wowstash/blueprints/wallet/routes.py +++ b/wowstash/blueprints/wallet/routes.py @@ -208,7 +208,7 @@ def send(): msg = tx['message'].capitalize() msg_lower = tx['message'].replace(' ', '_').lower() flash(f'There was a problem sending the transaction: {msg}') - capture_event(user.id, f'tx_fail_{msg_lower}') + capture_event(user.id, f'tx_fail_{msg_lower[0:50]}') else: flash('Successfully sent transfer.') capture_event(user.id, 'tx_success')