Bugfixes.

This commit is contained in:
Markus Birth 2018-01-14 22:17:28 +01:00
parent 4505fba099
commit 4a44c8af1d
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
2 changed files with 8 additions and 0 deletions

View File

@ -4,6 +4,13 @@ Car Sharing Analyser
This is a collection of scripts and tools to gather, prepare and analyse data about a This is a collection of scripts and tools to gather, prepare and analyse data about a
German car sharing company. 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 Gathering
--------- ---------

View File

@ -43,6 +43,7 @@ class C2GImport:
stamp_str = stamp.group(1) stamp_str = stamp.group(1)
stamp_dt = datetime.datetime.strptime(stamp_str + "+0100", "%Y-%m-%d_%H%M%S%z") stamp_dt = datetime.datetime.strptime(stamp_str + "+0100", "%Y-%m-%d_%H%M%S%z")
if stamp_dt <= max_date_dt: if stamp_dt <= max_date_dt:
file_count -= 1
continue continue
ctr += 1 ctr += 1
self.scanfile(f, stamp_str, stamp_dt, ctr, file_count) self.scanfile(f, stamp_str, stamp_dt, ctr, file_count)