From bb296a094ffaa958628a9c073bf3acdac9553033 Mon Sep 17 00:00:00 2001 From: Usama Bin Nadeem <32700508+usamabinnadeem-10@users.noreply.github.com> Date: Thu, 7 Nov 2024 21:37:44 +0500 Subject: [PATCH] fix linters and tests --- webapp/shop/cred/views.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/webapp/shop/cred/views.py b/webapp/shop/cred/views.py index aaf7ff5fe6..c5344183a4 100644 --- a/webapp/shop/cred/views.py +++ b/webapp/shop/cred/views.py @@ -124,10 +124,8 @@ def cred_sign_up(**_): form_fields[key] = value if "utm_content" in form_fields: form_fields["utmcontent"] = form_fields.pop("utm_content") - - if 'country' in form_fields: - form_fields['Country'] = form_fields.pop('country') - + if "country" in form_fields: + form_fields["Country"] = form_fields.pop("country") # Check honeypot values are not set honeypots = {} honeypots["name"] = flask.request.form.get("name")