Skip to content

Commit

Permalink
Fix get-sets endpoint being broken due to expecting a threading.Event…
Browse files Browse the repository at this point in the history
… in new cancel_event arg
  • Loading branch information
sticks-stuff committed Jul 30, 2024
1 parent 5a93d6c commit 97a78de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TournamentDataProvider/StartGGDataProvider.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def GetMatches(self, getFinished=False, progress_callback=None, cancel_event=Non

logger.info("Fetching sets")

while page <= totalPages and not cancel_event.is_set():
while page <= totalPages and (cancel_event is None or not cancel_event.is_set()):
data = self.QueryRequests(
"https://www.start.gg/api/-/gql",
type=requests.post,
Expand Down

0 comments on commit 97a78de

Please sign in to comment.