From de795f822ca803d9ea24beb2e5fcd06f98d418d8 Mon Sep 17 00:00:00 2001 From: Nick McCoy Date: Thu, 6 Sep 2018 13:25:26 +0000 Subject: [PATCH] change while loop conditions to fix infinite loop --- tap_appsflyer/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_appsflyer/__init__.py b/tap_appsflyer/__init__.py index af34dea..ac99884 100644 --- a/tap_appsflyer/__init__.py +++ b/tap_appsflyer/__init__.py @@ -386,7 +386,7 @@ def sync_in_app_events(): from_datetime = get_start("in_app_events") to_datetime = get_stop(from_datetime, stop_time, 10) - while to_datetime <= stop_time: + while from_datetime < stop_time: LOGGER.info("Syncing data from %s to %s", from_datetime, to_datetime) params = dict() params["from"] = from_datetime.strftime("%Y-%m-%d %H:%M")