Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed May 16, 2024
1 parent fd6aae4 commit 8b381ac
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/rer/newsletter/restapi/services/subscriptions/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 8b381ac

Please sign in to comment.