Skip to content

Commit 473ccc9

Browse files
committed
make sure projectNumber is int and not string when sorting inactive projects
1 parent e7de42c commit 473ccc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mapswipe_workers/python_scripts/update_project_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def run_update_project_status(filter_string: str) -> None:
6565
# We sort projects by their attribute "projectNumber" to ensure that
6666
# always the lowest one will be set to "status=active" next.
6767
inactive_projects = OrderedDict(
68-
sorted(inactive_projects.items(), key=lambda x: x[1]["projectNumber"])
68+
sorted(inactive_projects.items(), key=lambda x: int(x[1]["projectNumber"]))
6969
)
7070

7171
new_active_projects = filter_projects_by_name_and_progress(

0 commit comments

Comments
 (0)