Skip to content

Commit

Permalink
load the data which has exact datetime as the last bookmark value (#34)
Browse files Browse the repository at this point in the history
handled integration test cases in different branch - `fix-existing-integration-tests`
  • Loading branch information
sgandhi1311 authored Mar 20, 2023
1 parent de0437b commit 3c81d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tap_activecampaign/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def process_records(self,
bookmark_dttm = self.transform_datetime(transformed_record[bookmark_field])
# Keep only records whose bookmark is after the last_datetime
if bookmark_dttm:
if bookmark_dttm > last_dttm:
if bookmark_dttm >= last_dttm:
self.write_record(stream_name, transformed_record, \
time_extracted=time_extracted)
counter.increment()
Expand Down

0 comments on commit 3c81d12

Please sign in to comment.