From 1390c9c36491c80ffc0f89b4efc25500412d16f1 Mon Sep 17 00:00:00 2001 From: nick-mccoy Date: Fri, 31 May 2019 17:33:28 +0000 Subject: [PATCH] make bookmark keys automatic --- tap_pipedrive/tap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_pipedrive/tap.py b/tap_pipedrive/tap.py index 536d5c8..37cd1c9 100644 --- a/tap_pipedrive/tap.py +++ b/tap_pipedrive/tap.py @@ -57,7 +57,7 @@ def do_discover(self): metadata = [] for prop, json_schema in schema.properties.items(): inclusion = 'available' - if prop in key_properties: + if prop in key_properties or (stream.state_field and prop == stream.state_field): inclusion = 'automatic' metadata.append({ 'breadcrumb': ['properties', prop],