From c98f67007d118fd9ba57ed0f9e1c9206a4187be5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com>
Date: Wed, 14 Aug 2024 16:21:15 +0200
Subject: [PATCH] [FIX] pre-commit

---
 controllers/website_event.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/controllers/website_event.py b/controllers/website_event.py
index 89ddbca..4ce203e 100644
--- a/controllers/website_event.py
+++ b/controllers/website_event.py
@@ -2,8 +2,8 @@
 # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
 
 from odoo import _
-from odoo.http import request
 from odoo.exceptions import ValidationError
+from odoo.http import request
 from odoo.tools import str2bool
 
 from odoo.addons.website_event_questions.controllers.main import WebsiteEvent
@@ -15,13 +15,12 @@ class WebsiteEventPartnerQuestion(WebsiteEvent):
         Extracts question answers:
         - For questions of type 'multiple_choice', extracting the suggested answer id"""
 
-        registrations = super(
-            WebsiteEventPartnerQuestion, self
-        )._process_attendees_form(event, form_details)
+        registrations = super()._process_attendees_form(event, form_details)
         fields_to_update = {}
         for key, value in form_details.items():
             if key.startswith("question_contact-"):
-                dummy, question = key.split("-")
+                _dummy, question = key.split("-")
+                # ruff: noqa: B023
                 question_id = event.sudo().partner_question_ids.filtered(
                     lambda q: q.id == int(question)
                 )
@@ -45,7 +44,8 @@ class WebsiteEventPartnerQuestion(WebsiteEvent):
                     fields_to_update[ir_field_id.name] = value
 
             if key.startswith("question_contact_multi-"):
-                dummy, question, answer = key.split("-")
+                _dummy, question, _answer = key.split("-")
+                # ruff: noqa: B023
                 question_id = event.sudo().partner_question_ids.filtered(
                     lambda q: q.id == int(question)
                 )
-- 
GitLab