Skip to content

Commit

Permalink
fixed code for waiting_list
Browse files Browse the repository at this point in the history
  • Loading branch information
eikichi18 committed Aug 9, 2024
1 parent 7add554 commit 9e095e5
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,10 @@ def store_data(self):
if not res:
raise BadRequest("Unable to store data")

data.update(
{
"waiting_list": self.submit_limit is not None
and -1 < self.submit_limit < self.count_data()
}
waiting_list = (
self.submit_limit is not None and -1 < self.submit_limit < self.count_data()
)
data.update({"waiting_list": waiting_list})

return data

Expand Down

0 comments on commit 9e095e5

Please sign in to comment.