Skip to content

Commit

Permalink
zstream move sort after set() (#94) (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
smatula authored Apr 17, 2024
1 parent cd96bb9 commit 5f37abf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def update_processed_version(
processed_versions_file_path=processed_versions_file_path, logger=logger
)
processed_versions_file_content.setdefault(base_version, []).append(version)
processed_versions_file_content[base_version].sort(key=packaging.version.Version, reverse=True)
processed_versions_file_content[base_version] = list(set(processed_versions_file_content[base_version]))
processed_versions_file_content[base_version].sort(key=packaging.version.Version, reverse=True)
with open(processed_versions_file_path, "w") as fd:
json.dump(processed_versions_file_content, fd)

Expand Down

0 comments on commit 5f37abf

Please sign in to comment.