Skip to content

Commit

Permalink
Update GeneralLedgerReport.py (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
benhubsch authored Nov 2, 2023
1 parent 099e8d4 commit 6da720a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tap_quickbooks/quickbooks/reportstreams/GeneralLedgerReport.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ def clean_row(self, output, columns):
yield cleansed_row

def concurrent_get(self, report_entity, params):
log_msg = f"Fetch GeneralLedgerReport for period {params['start_date']} to {params['end_date']}"
LOGGER.info(log_msg)
response = self._get(report_entity, params)
LOGGER.info(f"COMPLETE: {log_msg}")

if "Unable to display more data. Please reduce the date range." in str(
response
):
Expand Down Expand Up @@ -211,12 +215,6 @@ def sync(self, catalog_entry):
if len(requests_params) < max_requests and end_date < today:
continue
elif len(requests_params) == max_requests or end_date == today:
[
LOGGER.info(
f"Fetch GeneralLedgerReport for period {x['start_date']} to {x['end_date']}"
)
for x in requests_params
]
with concurrent.futures.ThreadPoolExecutor(
max_workers=max_requests
) as executor:
Expand Down

0 comments on commit 6da720a

Please sign in to comment.