Skip to content

Commit

Permalink
revert pr#42 (#44)
Browse files Browse the repository at this point in the history
* revert prospects fix #42
  • Loading branch information
somethingmorerelevant authored Feb 20, 2024
1 parent 29ff131 commit 8be7ea4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 1.4.6
* Revert P.R #42 [#44](https://github.com/singer-io/tap-pardot/pull/44)

## 1.4.5
* Prospects Stream Fix Pagination [#42](https://github.com/singer-io/tap-pardot/pull/42)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name="tap-pardot",
version="1.4.5",
version="1.4.6",
description="Singer.io tap for extracting data",
author="Stitch",
url="http://singer.io",
Expand Down
18 changes: 0 additions & 18 deletions tap_pardot/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,24 +376,6 @@ class Prospects(UpdatedAtReplicationStream):

is_dynamic = False

def get_records(self):
offset = 0
params = self.get_params()
while True:
params["offset"] = offset
data = self.client.get(self.endpoint, **params)
records = data["result"]
if not records:
break
offset += 200
yield from records[self.data_key]

def sync(self):
self.pre_sync()
for rec in self.sync_page():
yield rec
self.post_sync()


class Opportunities(NoUpdatedAtSortingStream):
stream_name = "opportunities"
Expand Down

0 comments on commit 8be7ea4

Please sign in to comment.