diff --git a/tornettools/stage.py b/tornettools/stage.py index 186cd12..150561a 100644 --- a/tornettools/stage.py +++ b/tornettools/stage.py @@ -60,7 +60,9 @@ def stage_users(args, min_unix_time, max_unix_time): date = str(parts[0]) # like '2019-01-01' country_code = str(parts[1]) # like 'us' - user_count = int(parts[2]) # like '14714' + # At least one float has been observed in the file: + # + user_count = int(float(parts[2])) # like '14714' or '2e+05' dt = datetime.strptime(date, "%Y-%m-%d").replace(tzinfo=timezone.utc) unix_time = int(dt.strftime("%s")) # returns stamp like 1548910800