Gamaliel Espinoza 8 éve
szülő
commit
fa83e68394
2 módosított fájl, 5 hozzáadás és 5 törlés
  1. 1 1
      tools/fourier/__init__.py
  2. 4 4
      tools/fourier/cli.py

+ 1 - 1
tools/fourier/__init__.py

@@ -1 +1 @@
-__version__ = '1.0.0b2'
+__version__ = '1.0.0b3'

+ 4 - 4
tools/fourier/cli.py

@@ -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)