thilojaeggi / WinGetty

An open source REST Backend for creating a private WinGet Repo without having to rely on cloud dependencies.
https://wingetty.dev
GNU Affero General Public License v3.0
168 stars 15 forks source link

Fix version comparison logic in to_dict method #59

Closed thilojaeggi closed 1 month ago

thilojaeggi commented 1 month ago

This pull request addresses issue #56 by fixing the version comparison logic in the to_dict method. It ensures that all version components are treated as strings before sorting them using LooseVersion. This prevents the TypeError caused by comparing instances of str and int.