From c16731b23951f758fbe5473711d9b456807c7d5a Mon Sep 17 00:00:00 2001 From: miruka Date: Tue, 17 Dec 2019 16:18:00 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20"transfered"=20=E2=86=92=20"transferred"?= =?UTF-8?q?=20spelling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TODO.md | 2 -- src/python/matrix_client.py | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/TODO.md b/TODO.md index 3d6916dd..3b93c531 100644 --- a/TODO.md +++ b/TODO.md @@ -1,13 +1,11 @@ # TODO - - Make dark bar extend down pane - Verify default size ## Media - Clean up gui test md -- Send the monitor PR - nio ClientTimeout - Handle set avatar upload errors diff --git a/src/python/matrix_client.py b/src/python/matrix_client.py index 2e6b8aaf..50b6fe17 100644 --- a/src/python/matrix_client.py +++ b/src/python/matrix_client.py @@ -257,14 +257,14 @@ class MatrixClient(nio.AsyncClient): upload_item = Upload(item_uuid, task, monitor, path, total_size=size) self.models[Upload, room_id][str(item_uuid)] = upload_item - def on_transfered(transfered: int) -> None: - upload_item.uploaded = transfered + def on_transferred(transferred: int) -> None: + upload_item.uploaded = transferred def on_speed_changed(speed: float) -> None: upload_item.speed = speed upload_item.time_left = monitor.remaining_time - monitor.on_transfered = on_transfered + monitor.on_transferred = on_transferred monitor.on_speed_changed = on_speed_changed try: