Skip to content

Commit ee125c0

Browse files
karisal-andersnikomakela
authored andcommitted
chore: add year 2025 project to load_project_data.py's constant data
refs KK-1394
1 parent 1ff44a0 commit ee125c0

File tree

8 files changed

+119
-66
lines changed

8 files changed

+119
-66
lines changed

events/schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ def mutate_and_get_payload(cls, root, info, **kwargs):
13071307
event_group = EventGroup.objects.create_translatable_object(**kwargs)
13081308

13091309
logger.info(
1310-
f"user {user.uuid} added event group {event_group} " f"with data {kwargs}"
1310+
f"user {user.uuid} added event group {event_group} with data {kwargs}"
13111311
)
13121312

13131313
return AddEventGroupMutation(event_group=event_group)
@@ -1342,7 +1342,7 @@ def mutate_and_get_payload(cls, root, info, **kwargs):
13421342
update_object_with_translations(event_group, kwargs)
13431343

13441344
logger.info(
1345-
f"user {user.uuid} updated event group {event_group} " f"with data {kwargs}"
1345+
f"user {user.uuid} updated event group {event_group} with data {kwargs}"
13461346
)
13471347

13481348
return UpdateEventGroupMutation(event_group=event_group)

events/tests/snapshots/snap_test_notifications.py

Lines changed: 56 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -4,207 +4,205 @@
44

55
from snapshottest import Snapshot
66

7+
78
snapshots = Snapshot()
89

9-
snapshots["test_event_group_publish_notification 1"] = [
10-
"""kukkuu@example.com|['ywashington@example.com']|Event group published FI|
10+
snapshots['test_event_group_publish_notification 1'] = [
11+
'''kukkuu@example.com|['ywashington@example.com']|Event group published FI|
1112
Event group FI: Scientist service wonder everything pay.
1213
Guardian FI: Denise Thompson (ywashington@example.com)
1314
Url: http://localhost:3000/fi/profile/child/Q2hpbGROb2RlOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDMwOQ==/event-group/RXZlbnRHcm91cE5vZGU6Nzc3
1415
Events:
1516
Gas heavy affect difficult look can purpose care. 2020-12-12 00:00:00+00:00 http://localhost:3000/fi/profile/child/Q2hpbGROb2RlOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDMwOQ==/event/RXZlbnROb2RlOjc3Nw==
1617
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
17-
Obsoleted: False"""
18+
Obsoleted: False'''
1819
]
1920

20-
snapshots["test_event_group_republish_notification 1"] = [
21-
"""kukkuu@example.com|['ywashington@example.com']|Event group published FI|
21+
snapshots['test_event_group_republish_notification 1'] = [
22+
'''kukkuu@example.com|['ywashington@example.com']|Event group published FI|
2223
Event group FI: Loss there southern newspaper force.
2324
Guardian FI: Denise Thompson (ywashington@example.com)
2425
Url: http://localhost:3000/fi/profile/child/Q2hpbGROb2RlOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDMwOQ==/event-group/RXZlbnRHcm91cE5vZGU6Nzc3
2526
Events:
2627
If his their best. Election stay every something base. 2020-12-11 00:00:00+00:00 http://localhost:3000/fi/profile/child/Q2hpbGROb2RlOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDMwOQ==/event/RXZlbnROb2RlOjc3Nw==
2728
Data control as receive. End available avoid girl middle. 2020-12-12 00:00:00+00:00 http://localhost:3000/fi/profile/child/Q2hpbGROb2RlOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDMwOQ==/event/RXZlbnROb2RlOjc3OA==
2829
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
29-
Obsoleted: False"""
30+
Obsoleted: False'''
3031
]
3132

32-
snapshots["test_feedback_notification 1"] = [
33-
"""kukkuu@example.com|['ywashington@example.com']|Feedback FI|
33+
snapshots['test_feedback_notification 1'] = [
34+
'''kukkuu@example.com|['ywashington@example.com']|Feedback FI|
3435
Event FI: Entire increase thank certainly again.
3536
Guardian FI: (60, 15) I Should Receive A Notification (ywashington@example.com)
3637
Occurrence: 2020-12-11 23:00:00+00:00
3738
Child: Jose Kerr (2022)
3839
Enrolment: 2020-12-11 23:00:00+00:00
3940
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
40-
Obsoleted: False""",
41-
"""kukkuu@example.com|['jennifer00@example.com']|Feedback FI|
41+
Obsoleted: False''',
42+
'''kukkuu@example.com|['jennifer00@example.com']|Feedback FI|
4243
Event FI: Special respond positive cold.
4344
Guardian FI: (30, 15) I Should Receive A Notification (jennifer00@example.com)
4445
Occurrence: 2020-12-11 23:30:00+00:00
4546
Child: Jason Williams (2021)
4647
Enrolment: 2020-12-11 23:30:00+00:00
4748
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
48-
Obsoleted: False""",
49-
"""kukkuu@example.com|['aaronlee@example.org']|Feedback FI|
49+
Obsoleted: False''',
50+
'''kukkuu@example.com|['aaronlee@example.org']|Feedback FI|
5051
Event FI: Bar wish find system woman why. Whose age feeling speech.
5152
Guardian FI: (135, None) I Should Receive A Notification (aaronlee@example.org)
5253
Occurrence: 2020-12-11 21:45:00+00:00
5354
Child: Lindsey Baker (2022)
5455
Enrolment: 2020-12-11 21:45:00+00:00
5556
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
56-
Obsoleted: False""",
57-
"""kukkuu@example.com|['dennis27@example.net']|Feedback FI|
57+
Obsoleted: False''',
58+
'''kukkuu@example.com|['dennis27@example.net']|Feedback FI|
5859
Event FI: Other poor specific carry owner sense other.
5960
Guardian FI: (10080, 15) I Should Receive A Notification (dennis27@example.net)
6061
Occurrence: 2020-12-05 00:00:00+00:00
6162
Child: Alexa Mcdonald (2018)
6263
Enrolment: 2020-12-05 00:00:00+00:00
6364
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
64-
Obsoleted: False""",
65+
Obsoleted: False'''
6566
]
6667

67-
snapshots["test_feedback_notification_instance_checks[False] 1"] = [
68-
"""kukkuu@example.com|['ywashington@example.com']|Feedback FI|
68+
snapshots['test_feedback_notification_instance_checks[False] 1'] = [
69+
'''kukkuu@example.com|['ywashington@example.com']|Feedback FI|
6970
Event FI: Increase thank certainly again thought summer.
7071
Guardian FI: Denise Thompson (ywashington@example.com)
7172
Occurrence: 2020-12-11 00:00:00+00:00
7273
Child: Jose Kerr (2022)
7374
Enrolment: 2020-12-11 00:00:00+00:00
7475
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
75-
Obsoleted: False"""
76+
Obsoleted: False'''
7677
]
7778

78-
snapshots["test_feedback_notification_instance_checks[True] 1"] = [
79-
"""kukkuu@example.com|['ywashington@example.com']|Feedback FI|
79+
snapshots['test_feedback_notification_instance_checks[True] 1'] = [
80+
'''kukkuu@example.com|['ywashington@example.com']|Feedback FI|
8081
Event FI: Increase thank certainly again thought summer.
8182
Guardian FI: Denise Thompson (ywashington@example.com)
8283
Occurrence: 2020-12-11 00:00:00+00:00
8384
Child: Jose Kerr (2022)
8485
Enrolment: 2020-12-11 00:00:00+00:00
8586
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
86-
Obsoleted: False""",
87-
"""kukkuu@example.com|['jennifer00@example.com']|Feedback FI|
87+
Obsoleted: False''',
88+
'''kukkuu@example.com|['jennifer00@example.com']|Feedback FI|
8889
Event FI: Special respond positive cold.
8990
Guardian FI: Danielle Reese (jennifer00@example.com)
9091
Occurrence: 2020-12-17 00:00:00+00:00
9192
Child: Jason Williams (2021)
9293
Enrolment: 2020-12-17 00:00:00+00:00
9394
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
94-
Obsoleted: False""",
95+
Obsoleted: False'''
9596
]
9697

97-
snapshots["test_occurrence_cancelled_notification[False] 1"] = [
98-
"""kukkuu@example.com|['michellewalker@example.net']|Occurrence cancelled FI|
98+
snapshots['test_occurrence_cancelled_notification[False] 1'] = [
99+
'''kukkuu@example.com|['michellewalker@example.net']|Occurrence cancelled FI|
99100
Event FI: Decade either enter everything.
100101
Guardian FI: I Should Receive A Notification Valdez (michellewalker@example.net)
101102
Occurrence: 2020-12-12 01:00:00+00:00
102103
Child: Richard Hayes (2019)
103104
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
104-
Obsoleted: False"""
105+
Obsoleted: False'''
105106
]
106107

107-
snapshots["test_occurrence_cancelled_notification[True] 1"] = [
108-
"""kukkuu@example.com|['michellewalker@example.net']|Occurrence cancelled FI|
108+
snapshots['test_occurrence_cancelled_notification[True] 1'] = [
109+
'''kukkuu@example.com|['michellewalker@example.net']|Occurrence cancelled FI|
109110
Event FI: Decade either enter everything.
110111
Guardian FI: I Should Receive A Notification Valdez (michellewalker@example.net)
111112
Occurrence: 2020-12-12 01:00:00+00:00
112113
Child: Richard Hayes (2019)
113114
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
114-
Obsoleted: False"""
115+
Obsoleted: False'''
115116
]
116117

117-
snapshots["test_occurrence_enrolment_notifications_on_model_level[None] 1"] = [
118-
"""kukkuu@example.com|['michellewalker@example.net']|Occurrence enrolment FI|
118+
snapshots['test_occurrence_enrolment_notifications_on_model_level[None] 1'] = [
119+
'''kukkuu@example.com|['michellewalker@example.net']|Occurrence enrolment FI|
119120
Event FI: Poor lawyer treat free heart significant.
120121
Guardian FI: Ruth Palmer (michellewalker@example.net)
121122
Occurrence: 2020-12-12 00:00:00+00:00
122123
Child: Michael Pierce (2020)
123124
Occurrence URL: http://localhost:3000/fi/profile/child/Q2hpbGROb2RlOjU0NWM1ZmU1LTIzNWItNDZmZC1hYTJhLWNkNWRlNmZkZDBmYw==/occurrence/T2NjdXJyZW5jZU5vZGU6NzQ=
124125
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
125-
Obsoleted: False"""
126+
Obsoleted: False'''
126127
]
127128

128-
snapshots[
129-
"test_occurrence_enrolment_notifications_on_model_level[http://kultus-ui.test.kuva.hel.ninja/verify-ticket-endpoint/] 1"
130-
] = [
131-
"""kukkuu@example.com|['michellewalker@example.net']|Occurrence enrolment FI|
129+
snapshots['test_occurrence_enrolment_notifications_on_model_level[http://kultus-ui.test.kuva.hel.ninja/verify-ticket-endpoint/] 1'] = [
130+
'''kukkuu@example.com|['michellewalker@example.net']|Occurrence enrolment FI|
132131
Event FI: Poor lawyer treat free heart significant.
133132
Guardian FI: Ruth Palmer (michellewalker@example.net)
134133
Occurrence: 2020-12-12 00:00:00+00:00
135134
Child: Michael Pierce (2020)
136135
Occurrence URL: http://localhost:3000/fi/profile/child/Q2hpbGROb2RlOjU0NWM1ZmU1LTIzNWItNDZmZC1hYTJhLWNkNWRlNmZkZDBmYw==/occurrence/T2NjdXJyZW5jZU5vZGU6NzQ=
137136
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
138-
Obsoleted: False"""
137+
Obsoleted: False'''
139138
]
140139

141-
snapshots["test_occurrence_reminder_notification[None] 1"] = [
142-
"""kukkuu@example.com|['ywashington@example.com']|Occurrence reminder FI|
140+
snapshots['test_occurrence_reminder_notification[None] 1'] = [
141+
'''kukkuu@example.com|['ywashington@example.com']|Occurrence reminder FI|
143142
Event FI: Entire increase thank certainly again.
144143
Guardian FI: I Should Receive A Notification (ywashington@example.com)
145144
Occurrence: 2020-12-19 00:00:00+00:00
146145
Child: Jose Kerr (2022)
147146
Enrolment: 2020-12-19 00:00:00+00:00
148147
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
149-
Obsoleted: False""",
150-
"""kukkuu@example.com|['jennifer00@example.com']|Occurrence reminder FI|
148+
Obsoleted: False''',
149+
'''kukkuu@example.com|['jennifer00@example.com']|Occurrence reminder FI|
151150
Event FI: Special respond positive cold.
152151
Guardian FI: I Should Receive A Notification (jennifer00@example.com)
153152
Occurrence: 2020-12-13 00:00:00+00:00
154153
Child: Jason Williams (2021)
155154
Enrolment: 2020-12-13 00:00:00+00:00
156155
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
157-
Obsoleted: False""",
156+
Obsoleted: False'''
158157
]
159158

160-
snapshots[
161-
"test_occurrence_reminder_notification[http://kultus-ui.test.kuva.hel.ninja/verify-ticket-endpoint/] 1"
162-
] = [
163-
"""kukkuu@example.com|['ywashington@example.com']|Occurrence reminder FI|
159+
snapshots['test_occurrence_reminder_notification[http://kultus-ui.test.kuva.hel.ninja/verify-ticket-endpoint/] 1'] = [
160+
'''kukkuu@example.com|['ywashington@example.com']|Occurrence reminder FI|
164161
Event FI: Entire increase thank certainly again.
165162
Guardian FI: I Should Receive A Notification (ywashington@example.com)
166163
Occurrence: 2020-12-19 00:00:00+00:00
167164
Child: Jose Kerr (2022)
168165
Enrolment: 2020-12-19 00:00:00+00:00
169166
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
170-
Obsoleted: False""",
171-
"""kukkuu@example.com|['jennifer00@example.com']|Occurrence reminder FI|
167+
Obsoleted: False''',
168+
'''kukkuu@example.com|['jennifer00@example.com']|Occurrence reminder FI|
172169
Event FI: Special respond positive cold.
173170
Guardian FI: I Should Receive A Notification (jennifer00@example.com)
174171
Occurrence: 2020-12-13 00:00:00+00:00
175172
Child: Jason Williams (2021)
176173
Enrolment: 2020-12-13 00:00:00+00:00
177174
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
178-
Obsoleted: False""",
175+
Obsoleted: False'''
179176
]
180177

181-
snapshots["test_reminder_notification_instance_checks[False] 1"] = []
178+
snapshots['test_reminder_notification_instance_checks[False] 1'] = [
179+
]
182180

183-
snapshots["test_reminder_notification_instance_checks[True] 1"] = [
184-
"""kukkuu@example.com|['ywashington@example.com']|Occurrence reminder FI|
181+
snapshots['test_reminder_notification_instance_checks[True] 1'] = [
182+
'''kukkuu@example.com|['ywashington@example.com']|Occurrence reminder FI|
185183
Event FI: Increase thank certainly again thought summer.
186184
Guardian FI: Denise Thompson (ywashington@example.com)
187185
Occurrence: 2020-12-04 00:00:00+00:00
188186
Child: Jose Kerr (2022)
189187
Enrolment: 2020-12-04 00:00:00+00:00
190188
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
191-
Obsoleted: False""",
192-
"""kukkuu@example.com|['jennifer00@example.com']|Occurrence reminder FI|
189+
Obsoleted: False''',
190+
'''kukkuu@example.com|['jennifer00@example.com']|Occurrence reminder FI|
193191
Event FI: Special respond positive cold.
194192
Guardian FI: Danielle Reese (jennifer00@example.com)
195193
Occurrence: 2020-12-11 00:00:00+00:00
196194
Child: Jason Williams (2021)
197195
Enrolment: 2020-12-11 00:00:00+00:00
198196
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
199-
Obsoleted: False""",
197+
Obsoleted: False'''
200198
]
201199

202-
snapshots["test_unenrol_occurrence_notification 1"] = [
203-
"""kukkuu@example.com|['pjenkins@example.net']|Occurrence unenrolment FI|
200+
snapshots['test_unenrol_occurrence_notification 1'] = [
201+
'''kukkuu@example.com|['pjenkins@example.net']|Occurrence unenrolment FI|
204202
Event FI: Detail audience campaign college career fight data.
205203
Guardian FI: Calvin Gutierrez (pjenkins@example.net)
206204
Occurrence: 2020-12-12 00:00:00+00:00
207205
Child: Sandra Brown (2023)
208206
Unsubscribe: http://localhost:3000/fi/profile/subscriptions?authToken=a1b2c3d4e5f6g7h8
209-
Obsoleted: False"""
207+
Obsoleted: False'''
210208
]

importers/tests/test_notification_importer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ def event_published_notification():
3535
create_notification_template_in_language(
3636
NotificationType.EVENT_PUBLISHED,
3737
language,
38-
subject=f"{NotificationType.EVENT_PUBLISHED} "
39-
f"{language} original subject",
38+
subject=f"{NotificationType.EVENT_PUBLISHED} {language} original subject",
4039
body_text=f"{NotificationType.EVENT_PUBLISHED} "
4140
f"{language} original body_text",
4241
)

projects/consts.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
# Data taken from production Kukkuu API at
2+
# https://kukkuu.api.hel.fi/admin/projects/project/
13
(
24
PROJECT_DATA_2020,
35
PROJECT_DATA_2021,
46
PROJECT_DATA_2022,
57
PROJECT_DATA_2023,
68
PROJECT_DATA_2024,
9+
PROJECT_DATA_2025,
710
) = PROJECTS_DATA = [
811
{
912
"year": 2020,
@@ -79,4 +82,25 @@
7982
"sv": "Helsingfors biblioteks– och idrottstjänster",
8083
},
8184
},
85+
{
86+
"year": 2025,
87+
"translations": {
88+
"en": (
89+
"HAM Helsinki Art Museum, Amos Rex, Sointi Jazz Orchestra, "
90+
"UMO Helsinki Jazz Orchestra, Ateneum Art Museum, "
91+
"Museum of Contemporary Art Kiasma and Sinebrychoff Art Museum"
92+
),
93+
"fi": (
94+
"HAM Helsingin taidemuseo, Amos Rex, Sointi Jazz Orchestra, "
95+
"UMO Helsinki Jazz Orchestra ja Kansallisgalleria: "
96+
"Ateneumin taidemuseo, Nykytaiteen museo Kiasma "
97+
"ja Sinebrychoffin taidemuseo"
98+
),
99+
"sv": (
100+
"HAM Helsingfors konstmuseum, Amos Rex, Sointi Jazz Orchestra, "
101+
"UMO Helsinki Jazz Orchestra och Nationalgalleriet dvs. Ateneum, "
102+
"Kiasma och Konstmuseet Sinebrychoff"
103+
),
104+
},
105+
},
82106
]

projects/tests/snapshots/snap_test_api.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,29 @@
143143
],
144144
'year': 2024
145145
}
146+
},
147+
{
148+
'node': {
149+
'enrolmentLimit': 2,
150+
'id': 'UHJvamVjdE5vZGU6Ng==',
151+
'name': 'HAM Helsingin taidemuseo, Amos Rex, Sointi Jazz Orchestra, UMO Helsinki Jazz Orchestra ja Kansallisgalleria: Ateneumin taidemuseo, Nykytaiteen museo Kiasma ja Sinebrychoffin taidemuseo',
152+
'singleEventsAllowed': True,
153+
'translations': [
154+
{
155+
'languageCode': 'EN',
156+
'name': 'HAM Helsinki Art Museum, Amos Rex, Sointi Jazz Orchestra, UMO Helsinki Jazz Orchestra, Ateneum Art Museum, Museum of Contemporary Art Kiasma and Sinebrychoff Art Museum'
157+
},
158+
{
159+
'languageCode': 'FI',
160+
'name': 'HAM Helsingin taidemuseo, Amos Rex, Sointi Jazz Orchestra, UMO Helsinki Jazz Orchestra ja Kansallisgalleria: Ateneumin taidemuseo, Nykytaiteen museo Kiasma ja Sinebrychoffin taidemuseo'
161+
},
162+
{
163+
'languageCode': 'SV',
164+
'name': 'HAM Helsingfors konstmuseum, Amos Rex, Sointi Jazz Orchestra, UMO Helsinki Jazz Orchestra och Nationalgalleriet dvs. Ateneum, Kiasma och Konstmuseet Sinebrychoff'
165+
}
166+
],
167+
'year': 2025
168+
}
146169
}
147170
]
148171
}

reports/serializers.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,7 @@ class OccurrenceSerializer(serializers.ModelSerializer):
181181
)
182182

183183
attended_count = serializers.SerializerMethodField(
184-
help_text="Count of how many children atteded "
185-
"in this occurrence of an event."
184+
help_text="Count of how many children atteded in this occurrence of an event."
186185
)
187186

188187
capacity = serializers.SerializerMethodField(
@@ -321,7 +320,7 @@ class EventSerializer(serializers.ModelSerializer):
321320
"in this event's occurrences."
322321
)
323322
attended_count = serializers.SerializerMethodField(
324-
help_text="Count of how many children atteded " "in this event's occurrences."
323+
help_text="Count of how many children atteded in this event's occurrences."
325324
)
326325
capacity = serializers.SerializerMethodField(
327326
help_text="The total capacity of how many children can there participate "

subscriptions/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ class Input:
199199
def mutate_and_get_payload(cls, root, info, **kwargs):
200200
user = info.context.user
201201
user.unsubscribe_all_notification_subscriptions()
202-
logger.info(f"User {user.uuid} unsubscribed from all notifications." "")
202+
logger.info(f"User {user.uuid} unsubscribed from all notifications.")
203203
return UnsubscribeFromAllNotificationsMutation(
204204
guardian=user.guardian, unsubscribed=True
205205
)

0 commit comments

Comments
 (0)