Browse code

Do not attempt to deduplicate filepaths.

Deduplicating filepaths through a simple set is liable to change their order,
leading to inconsistent output.

Xavier G authored on 02/12/2019 17:57:39
Showing 1 changed files

... ...
@@ -32,8 +32,7 @@ def main():
32 32
     args = parse_args()
33 33
     table = get_table()
34 34
     total = 0
35
-    filepaths = set(args.json_file)
36
-    for filepath in filepaths:
35
+    for filepath in args.json_file:
37 36
         accounts = load_json(filepath)
38 37
         timestamp = accounts.get('timestamp', time.time())
39 38
         for account in accounts.get('data', []):