diff --git a/README.md b/README.md index bece95d..6e7f135 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,13 @@ Car Sharing Analyser This is a collection of scripts and tools to gather, prepare and analyse data about a German car sharing company. +Requirements +------------ + +* Python 3.6 or newer (3.5 will probably work, too) + * geopy +* SQLite 3.7.11 or newer commandline client + Gathering --------- diff --git a/import.py b/import.py index 93974dd..03fb2d7 100644 --- a/import.py +++ b/import.py @@ -43,6 +43,7 @@ class C2GImport: stamp_str = stamp.group(1) stamp_dt = datetime.datetime.strptime(stamp_str + "+0100", "%Y-%m-%d_%H%M%S%z") if stamp_dt <= max_date_dt: + file_count -= 1 continue ctr += 1 self.scanfile(f, stamp_str, stamp_dt, ctr, file_count)