qcanvas 0.0.4a0__py3-none-any.whl → 0.0.4.1a0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of qcanvas might be problematic. Click here for more details.

qcanvas/ui/main_ui.py CHANGED
@@ -154,13 +154,13 @@ class AppMainWindow(QMainWindow):
154
154
  @asyncSlot()
155
155
  async def check_for_update(self):
156
156
  try:
157
- newer_version = await self_updater.get_newer_version()
157
+ newer_version, installed_version = await self_updater.get_newer_version()
158
158
 
159
159
  if newer_version is not None and newer_version != AppSettings.last_ignored_update:
160
160
  msg_box = QMessageBox(
161
161
  QMessageBox.Icon.Question,
162
162
  "Update available",
163
- "There is an update available, do you want to update?\nThe program will close after the update is finished.",
163
+ f"There is an update available ({installed_version} -> {newer_version})\n do you want to update?\nThe program will close after the update is finished.",
164
164
  QMessageBox.StandardButton.Yes | QMessageBox.StandardButton.No,
165
165
  self
166
166
  )
@@ -13,16 +13,16 @@ async def do_update():
13
13
  await asyncio.to_thread(os.system, f"pip install --upgrade {package_name}")
14
14
 
15
15
 
16
- async def get_newer_version() -> Version | None:
16
+ async def get_newer_version() -> tuple[Version | None, Version | None] | None:
17
17
  latest_version = await get_versions()
18
18
  installed_version = Version(version(package_name))
19
19
 
20
20
  print(f"latest = {latest_version}, installed = {installed_version}")
21
21
 
22
22
  if installed_version < latest_version:
23
- return latest_version
23
+ return latest_version, installed_version
24
24
  else:
25
- return None
25
+ return None, None
26
26
 
27
27
 
28
28
  async def get_versions() -> Version:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qcanvas
3
- Version: 0.0.4a0
3
+ Version: 0.0.4.1a0
4
4
  Summary: A canvas client
5
5
  Author: QCanvas
6
6
  Classifier: Operating System :: OS Independent
@@ -24,7 +24,7 @@ qcanvas/queries/canvas_course_data.gql,sha256=KJHjdu5sMKld4L6mPGfUrhqRLx_wdgGH8f
24
24
  qcanvas/queries/canvas_course_data.py,sha256=_ZNv9stXAyap2eBbCqmajXVpWr0920ZUcCS6Gtyyo0g,4314
25
25
  qcanvas/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
26
  qcanvas/ui/container_item.py,sha256=EGNypuA-nDTzPK1Np8dlwT_SF_az6cAaECOY3a44LjU,431
27
- qcanvas/ui/main_ui.py,sha256=dwoEBR9-nLiKs8g96hTiLqB255mK0Z8DntuqZALQqZ8,8436
27
+ qcanvas/ui/main_ui.py,sha256=tDg7LSDwtv2-O9LV_XTjU4RM-5dyKILSDCjpMDcZaZA,8498
28
28
  qcanvas/ui/setup_dialog.py,sha256=c-Eda97IaMCdLh5kJuSAkoJ-7SMfU0xzG37L77Krd3s,5671
29
29
  qcanvas/ui/menu_bar/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
30
  qcanvas/ui/menu_bar/grouping_preferences_menu.py,sha256=L4vaQCCBqM5MFH7NjSff8y_VlhOwDM9pppvublBuLLg,2433
@@ -40,7 +40,7 @@ qcanvas/util/canvas_garbage_remover.py,sha256=c6r6cyJomQ1zn5wFK-LX-ZsZXQZ-A2awBF
40
40
  qcanvas/util/constants.py,sha256=GIjH-ivnj4aoyWmrde3eqqXbBxuj9zOzaNzOmJPma0o,111
41
41
  qcanvas/util/download_pool.py,sha256=0ptHzyZC4lVXFPyYHnnDSZGS2qZCFMjPpY_8L_z3l6w,2376
42
42
  qcanvas/util/file_icon_helper.py,sha256=4vdqQbw_FT7APOWRIbg5Kt2OhCr6e2ejIArVRon3CwE,630
43
- qcanvas/util/self_updater.py,sha256=qQ5Xvq-ehrBgbi2A9yWXZss25AjLvo0drW0yZn01EHY,838
43
+ qcanvas/util/self_updater.py,sha256=KFIlU3ol1da8OacfYV9LFXOulZ7419yByz54rDatq2A,893
44
44
  qcanvas/util/task_pool.py,sha256=PCUfBn8_JYoovVWdq5cLNgYd6E5uSm6MN-wjNIdBg9c,8952
45
45
  qcanvas/util/course_indexer/__init__.py,sha256=IqwTfB8KVk7Go_yuBL8NOANgFiBCzjt0z38D4CEgq7w,38
46
46
  qcanvas/util/course_indexer/conversion_helpers.py,sha256=WggJmf4to7hpBpDTOpdBbaDQQv6OdEuLiFnhazcsjcM,2660
@@ -55,6 +55,6 @@ qcanvas/util/tree_util/__init__.py,sha256=yqjNHrD8SiyW_fGPfw7xdS-Rctjdu-RMWSkUxc
55
55
  qcanvas/util/tree_util/expanding_tree.py,sha256=DaSr0KS5owejQhehV4SS30GA3jhwD32M3Rx5-j5a4h8,6653
56
56
  qcanvas/util/tree_util/model_helpers.py,sha256=io1bHOMNgVqkPvGH2Iohug1-wx2MwC_-qlWlpVA0fFE,743
57
57
  qcanvas/util/tree_util/tree_model.py,sha256=2c_wLfbcS9RrmGGkTeX4rqMu4Fu5a-GwhtKLI_-QzE8,3012
58
- qcanvas-0.0.4a0.dist-info/METADATA,sha256=jdX1gGufI437eIZAmsY_pLJhQ8c-RDZ4tL6icpcoUs4,674
59
- qcanvas-0.0.4a0.dist-info/WHEEL,sha256=TJPnKdtrSue7xZ_AVGkp9YXcvDrobsjBds1du3Nx6dc,87
60
- qcanvas-0.0.4a0.dist-info/RECORD,,
58
+ qcanvas-0.0.4.1a0.dist-info/METADATA,sha256=S-IDG9j3dYMDpPi7nbLGqMX7gLPD5EVZjGMrVHp26UU,676
59
+ qcanvas-0.0.4.1a0.dist-info/WHEEL,sha256=TJPnKdtrSue7xZ_AVGkp9YXcvDrobsjBds1du3Nx6dc,87
60
+ qcanvas-0.0.4.1a0.dist-info/RECORD,,