From 8b381ac013ee73fc345e5d3dc614e31b053550fb Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Thu, 16 May 2024 16:28:07 +0200 Subject: [PATCH] fix import --- .../newsletter/restapi/services/subscriptions/post.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/rer/newsletter/restapi/services/subscriptions/post.py b/src/rer/newsletter/restapi/services/subscriptions/post.py index 352d7064..9ada7e4b 100644 --- a/src/rer/newsletter/restapi/services/subscriptions/post.py +++ b/src/rer/newsletter/restapi/services/subscriptions/post.py @@ -31,7 +31,9 @@ def reply(self): ) ) - channel = getMultiAdapter((self.context, self.request), IChannelSubscriptions) + channel = getMultiAdapter( + (self.context, self.request), IChannelSubscriptions + ) status = channel.addUser(email) if status != SUBSCRIBED: @@ -72,7 +74,9 @@ def reply(self): data = json_body(self.request) self.validate_form(data) - channel = getMultiAdapter((self.context, self.request), IChannelSubscriptions) + channel = getMultiAdapter( + (self.context, self.request), IChannelSubscriptions + ) remove_from_list = data.get("remove_from_list", False) reset_list = data.get("reset_list", False) @@ -121,7 +125,7 @@ def extract_subscriptions(self, data): reg_tool = api.portal.get_tool(name="portal_registration") reader = csv.reader( - csv_file, delimiter=csv_separator, dialect="excel", quotechar="'" + csv_file, delimiter=csv_separator, dialect="excel", quotechar='"' ) index = 1 if has_header: