|
|
@@ -80,11 +80,11 @@ def main():
|
|
|
thehash = ahash.hexdigest()
|
|
|
exists = find_hash(thehash, db=conn)
|
|
|
if not exists:
|
|
|
+ dt = datetime.strptime(
|
|
|
+ file[:19],
|
|
|
+ '%Y-%m-%dT%H-%M-%S'
|
|
|
+ )
|
|
|
if args.from_date:
|
|
|
- dt = datetime.strptime(
|
|
|
- file[:19],
|
|
|
- '%Y-%m-%dT%H-%M-%S'
|
|
|
- )
|
|
|
if dt >= args.from_date:
|
|
|
counter += 1
|
|
|
insert_file(thehash, filename, dt, db=conn)
|