Skip to content

Commit

Permalink
Merge pull request #750 from sticks-stuff/bug/broken-get-sets
Browse files Browse the repository at this point in the history
Fix get-sets endpoint being broken due to expecting a threading.Event in new cancel_event arg
  • Loading branch information
joaorb64 authored Jul 30, 2024
2 parents 5a93d6c + 97a78de commit 4ecf798
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 4ecf798

Please sign in to comment.