From 470348c8c436b5ee86bb505ce59d5d39bf1c853e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20S=C3=A1nchez?= Date: Thu, 19 Sep 2024 22:18:11 +0100 Subject: [PATCH] Fix package name in check updates function (#381) --- blackboard_sync/updates.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/blackboard_sync/updates.py b/blackboard_sync/updates.py index dba32f3..106f1bd 100644 --- a/blackboard_sync/updates.py +++ b/blackboard_sync/updates.py @@ -28,8 +28,10 @@ def check_for_updates() -> bool: """Checks if there is a newer release than the current on Github.""" + package = __package__.replace('_', '') + try: - __version__ = get_version(__package__) + __version__ = get_version(package) except PackageNotFoundError: return False