Skip to content

Commit

Permalink
Fixed assert test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitri committed Dec 13, 2024
1 parent 6683bee commit 95f9e53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions processes/ingest/publisher_backlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ def runProcess(self):
self.createSession()

if self.process == 'daily':
records = self.publisher_backlist_service.get_records(limit=self.limit)
records = self.publisher_backlist_service.get_records(offset=self.offset, limit=self.limit)
elif self.process == 'complete':
records = self.publisher_backlist_service.get_records(full_import=True)
elif self.process == 'custom':
records = self.publisher_backlist_service.get_records(start_timestamp=self.ingestPeriod, offset=self.offset, limit=self.limit)
records = self.publisher_backlist_service.get_records(start_timestamp=self.ingestPeriod, limit=self.limit)
else:
logger.warning(f'Unknown Publisher Backlist ingestion process type {self.process}')
return
Expand Down
2 changes: 2 additions & 0 deletions services/sources/publisher_backlist_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ def get_records_json(self,
) -> list[dict]:
if offset == None:
limit = 100

limit = offset

filter_by_formula = self.build_filter_by_formula_parameter(deleted=False, full_import=None, start_timestamp=None)

Expand Down

0 comments on commit 95f9e53

Please sign in to comment.