From dd1b7f9c31c967f9b97cc6074b5e4371b7eb62f0 Mon Sep 17 00:00:00 2001 From: Eduard Vlasov Date: Mon, 3 Jun 2019 12:47:38 +0500 Subject: [PATCH] Python 3.6 compatibility --- tap_appstore/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tap_appstore/__init__.py b/tap_appstore/__init__.py index 8a2fb42..46688a8 100644 --- a/tap_appstore/__init__.py +++ b/tap_appstore/__init__.py @@ -140,7 +140,8 @@ def query_report(api): catalog_entry = Context.get_catalog_entry(stream_name) stream_schema = catalog_entry['schema'] - bookmark = datetime.fromisoformat(get_bookmark(stream_name)).replace(tzinfo=pytz.UTC) + # bookmark = datetime.fromisoformat(get_bookmark(stream_name)).replace(tzinfo=pytz.UTC) + bookmark = datetime.strptime(get_bookmark(stream_name), "%Y-%m-%dT%H:%M:%SZ").replace(tzinfo=pytz.UTC) delta = timedelta(days=1) extraction_time = singer.utils.now()