Skip to content

Commit

Permalink
fix logic for concurrent requests (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyn4 authored Oct 10, 2023
1 parent 3002618 commit 58f3164
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ def sync(self, catalog_entry):
start_date = end_date

# get the data
if len(requests_params) < max_requests:
if len(requests_params) < max_requests and end_date < today:
continue
else:
elif len(requests_params) == max_requests or end_date == today:
[
LOGGER.info(
f"Fetch GeneralLedgerReport for period {x['start_date']} to {x['end_date']}"
Expand Down

0 comments on commit 58f3164

Please sign in to comment.