From 1ab4e4b286d6f1d0bdf287f06a9864115370c434 Mon Sep 17 00:00:00 2001 From: Benno Date: Sat, 17 Aug 2024 18:15:23 +0200 Subject: [PATCH] Fix bug in form validation --- spybot/forms.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spybot/forms.py b/spybot/forms.py index 77588d6..241e148 100644 --- a/spybot/forms.py +++ b/spybot/forms.py @@ -41,13 +41,12 @@ class AddSteamIDForm(forms.Form): def clean_steamid(self): cleaned_data = super().clean() steamid = cleaned_data.get("steamid") - name = cleaned_data.get("name") steam_info = get_steam_account_info(steamid) if steam_info is None: raise ValidationError("Can't load steam information for this user") - return cleaned_data + return steamid """