Skip to content

Commit f904877

Browse files
authored
Merge pull request #526 from mapswipe/dev
make sure projectNumber is int and not string when sorting inactive p…
2 parents 9db117f + 473ccc9 commit f904877

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)