Skip to content

Commit

Permalink
NarWeb: sometimes, notes are printed twice.
Browse files Browse the repository at this point in the history
  • Loading branch information
SNoiraud committed Apr 16, 2024
1 parent 3002bb5 commit b3cf03c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gramps/plugins/webreport/basepage.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,12 @@ def display_event_row(
notelist = event_ref.get_note_list()
notelist.extend(event.get_note_list()[:]) # we don't want to modify
# cached original
htmllist = self.dump_notes(notelist, Event)
notes = []
# sometimes we have duplicate handles.
for note_hdle in notelist:
if note_hdle not in notes:
notes.append(note_hdle)
htmllist = self.dump_notes(notes, Event)

# if the event or event reference has an attribute attached to it,
# get the text and format it correctly?
Expand Down

0 comments on commit b3cf03c

Please sign in to comment.