Last bug fix?
authorJakob <jakob@jcornell.net>
Fri, 6 Dec 2019 20:09:11 +0000 (14:09 -0600)
committerJakob <jakob@jcornell.net>
Fri, 6 Dec 2019 20:09:11 +0000 (14:09 -0600)
main.py

diff --git a/main.py b/main.py
index 1e0aab2ccaaad5740d3187add8145ef62024a210..171e38f87a27625e2caecb3051f028db2b5a6159 100644 (file)
--- a/main.py
+++ b/main.py
@@ -159,7 +159,7 @@ with StorageManager(Path('auth_cache')) as storage_mgr:
                                                new_version = result.version.next()
                                                log('info', "Found new revision ({})".format(new_version.version), indent = 2)
                                        else:
-                                               new_version = fs.VersionInfo(att_id, 0)
+                                               new_version = fs.VersionInfo(fs.VersionInfo.MetaType.NEW, att_id, 0)
                                                log('info', "Storing initial revision", indent = 2)
                                        dest = fs.get_new_path(local_path, attachment_doc['fileName'])
                                        log('info', "Destination: {}".format(dest), indent = 2)