From: Jakob Date: Fri, 6 Dec 2019 20:09:11 +0000 (-0600) Subject: Last bug fix? X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=893bff486501c41431a964bba0349f9f15f5cc60;p=bb-sync-api.git Last bug fix? --- diff --git a/main.py b/main.py index 1e0aab2..171e38f 100644 --- 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)