You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ReimarBauer
changed the title
review defaults / casting of None in models.Changes to str?
type casting of None in models.Changes to 'None' is wrong
Dec 10, 2024
By fixing #1860 with #2585 I have seen that the https://github.com/Open-MSS/MSS/blob/develop/mslib/mscolab/models.py#L210 version_name default is None. But the comparison to None https://github.com/Open-MSS/MSS/blob/develop/mslib/mscolab/file_manager.py#L466 gives not the expected result. It looks like adding waypoints stores it as "None".
In the PR I do use now .filter(str(Change.version_name) != "None")\
I don't know currently where the Type Cast happens or what's the reason.
The text was updated successfully, but these errors were encountered: