Skip to content

Commit

Permalink
fixes clear and add msg in loop for adding volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Jun 11, 2024
1 parent 4f42d36 commit 09dafa6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ceurws/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Version:
name = "CEUR-WS Volume Browser"
version = ceurws.__version__
date = "2022-08-14"
updated = "2024-03-13"
updated = "2024-06-11"
description = "CEUR-WS Volume browser"

authors = "Tim Holzheim, Wolfgang Fahl"
Expand Down
14 changes: 10 additions & 4 deletions ceurws/volume_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,14 @@ def add_msg(self, html_markup: str):

def updateWikidataVolumes(self,selected_rows):
"""
update wikidata volumes
update wikidata volumes for the selected rows
"""
try:
msg = f"{len(selected_rows)} Volumes selected<br>"
self.clear_msg(msg)
for row in selected_rows:
vol_number = row["#"]
volume = self.wdSync.volumesByNumber[vol_number]
msg = f"{len(selected_rows)} Volumes selected<br>"
self.clear_msg(msg)
volume = self.wdSync.volumesByNumber[vol_number]
self.add_or_update_volume_in_wikidata(volume)
pass
except Exception as ex:
Expand Down Expand Up @@ -377,6 +377,12 @@ def get_volume_lod(self):
)

def add_or_update_volume_in_wikidata(self, volume: Volume):
"""
add the given volume to wikidata or update it if it already exists
Args:
volume(Volume): the CEUR-WS volume to update proceedings and event entries for
"""
try:
msg = f"trying to add Volume {volume.number} to wikidata"
with self.parent:
Expand Down

0 comments on commit 09dafa6

Please sign in to comment.