Skip to content

Commit

Permalink
fixes sorting and prepares release
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Jul 15, 2024
1 parent 09dafa6 commit 51b936e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ceurws/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.1"
__version__ = "0.4.2"
4 changes: 3 additions & 1 deletion ceurws/volume_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ def updateWikidataVolumes(self,selected_rows):
try:
msg = f"{len(selected_rows)} Volumes selected<br>"
self.clear_msg(msg)
for row in selected_rows:
# First, sort selected_rows by the volume number in ascending order
sorted_rows = sorted(selected_rows, key=lambda row: row["#"])
for row in sorted_rows:
vol_number = row["#"]
volume = self.wdSync.volumesByNumber[vol_number]
self.add_or_update_volume_in_wikidata(volume)
Expand Down

0 comments on commit 51b936e

Please sign in to comment.