AscenderTeam / AscenderFramework

The Ascender Framework is a sophisticated and structured FastAPI-based framework, inspired by the principles of NestJS. It stands out for its modular and organized architecture, offering developers a streamlined and efficient way to build web applications
GNU General Public License v3.0
3 stars 1 forks source link

Versions comparison ValueError #12

Open UndoGG opened 1 week ago

UndoGG commented 1 week ago

│ C:\Users\heyya\AppData\Local\Programs\Python\Python312\Lib\site-packages\ascender\logic\projects │ │ .py:70 in compare_versions │ │ │ │ 67 │ │ # Compare each component │ │ 68 │ │ for c1, c2 in zip(components1, components2): │ │ 69 │ │ │ # Convert components to integers for comparison │ │ ❱ 70 │ │ │ if int(c1) < int(c2): │ │ 71 │ │ │ │ return -1 │ │ 72 │ │ │ elif int(c1) > int(c2): │ │ 73 │ │ │ │ return 1 │ │ │ │ ╭──────────────────────────────────────── locals ─────────────────────────────────────────╮ │ │ │ c1 = '0' │ │ │ │ c2 = '0-beta' │ │ │ │ components1 = ['1', '1', '0'] │ │ │ │ components2 = ['1', '1', '0-beta'] │ │ │ │ self = <ascender.logic.projects.UpdaterMasterLogic object at 0x0000020A3437FC80> │ │ │ │ v1 = '1.1.0' │ │ │ │ v2 = 'v1.1.0-beta' │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────╯ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ValueError: invalid literal for int() with base 10: '0-beta'

Zahgrom34 commented 1 week ago

Please, address this issue to other repository