From 4b47b0f7ec44d9456ae647273a88d92172fdebd8 Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 6 Nov 2019 07:52:43 -0400 Subject: [PATCH] Remove useless UploadStatus.Success --- src/python/matrix_client.py | 1 - src/python/models/items.py | 1 - 2 files changed, 2 deletions(-) diff --git a/src/python/matrix_client.py b/src/python/matrix_client.py index d37b5bc9..31be6522 100644 --- a/src/python/matrix_client.py +++ b/src/python/matrix_client.py @@ -317,7 +317,6 @@ class MatrixClient(nio.AsyncClient): content["msgtype"] = "m.file" content["filename"] = path.name - upload_item.status = UploadStatus.Success del self.models[Upload, room_id][upload_item.uuid] uuid = str(uuid4()) diff --git a/src/python/models/items.py b/src/python/models/items.py index 58545170..70144b0a 100644 --- a/src/python/models/items.py +++ b/src/python/models/items.py @@ -110,7 +110,6 @@ class UploadStatus(AutoStrEnum): CreatingThumbnail = auto() EncryptingThumbnail = auto() UploadingThumbnail = auto() - Success = auto() Failure = auto() # TODO