Skip to content

Commit

Permalink
better report name
Browse files Browse the repository at this point in the history
  • Loading branch information
sherifnada committed Mar 2, 2021
1 parent f3971be commit e2d3dac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tap_appstore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,11 @@ def query_report(api: Api, catalog_entry):
LOGGER.info("Requesting Appstore data for: %s on %s", stream_name, report_date)
# setting report filters for each stream
report_filters = get_api_request_fields(report_date, stream_name)
rep = _attempt_download_report(api, report_filters)
report_optional = _attempt_download_report(api, report_filters)

if rep:
if report_optional:
# write records
for index, line in enumerate(rep, start=1):
for index, line in enumerate(report_optional, start=1):
data = line
data['_line_id'] = index
data['_time_extracted'] = extraction_time.strftime(TIME_EXTRACTED_FORMAT)
Expand Down

0 comments on commit e2d3dac

Please sign in to comment.