Skip to content

Commit

Permalink
i am at war with the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstambach committed Oct 21, 2024
1 parent 2dba6be commit deebb63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions amivapi/events/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ def update_waiting_list_after_insert(signups):
event = current_app.data.find_one('events', None, **lookup)
lookup = {'event': event_id, 'accepted': True}
signup_count = (
current_app.data.driver.db['eventsignups']\
.count_documents(lookup))
current_app.data.driver.db['eventsignups']
.count_documents(lookup))
if event is not None:
if event['selection_strategy'] == "manual" \
and signup_count < event['spots']:
and signup_count < event['spots']:
notify_signup_accepted(event, signup, True, True)
else:
notify_signup_accepted(event, signup, True, False)
Expand Down
3 changes: 2 additions & 1 deletion amivapi/tests/events/test_emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,8 @@ def test_notify_waitlist_on_signup_update(self):
},
status_code=201).json
# this results in a different email
self.assertTrue('are manually reviewed' in self.app.test_mails[0]['text'])
self.assertTrue('are manually reviewed'
in self.app.test_mails[0]['text'])

# User manually accepted from waiting list
self.api.patch('/eventsignups/%s' % manual_signup['_id'],
Expand Down

0 comments on commit deebb63

Please sign in to comment.