Skip to content

Commit

Permalink
Media performances in the narrative web.
Browse files Browse the repository at this point in the history
Fixes #13370
  • Loading branch information
SNoiraud committed Jul 16, 2024
1 parent 1dfc1be commit 52bc16d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions gramps/plugins/webreport/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
# ------------------------------------------------
# python modules
# ------------------------------------------------
import gc
import os
import shutil
import tempfile
Expand Down Expand Up @@ -150,7 +149,6 @@ def sort_by_desc_and_gid(obj):
total = len(sorted_media_handles)
index = 1
for handle in sorted_media_handles:
gc.collect() # Reduce memory usage when there are many images.
if index == media_count:
next_ = None
elif index < total:
Expand All @@ -176,7 +174,6 @@ def sort_by_desc_and_gid(obj):
prev = sorted_media_handles[total_m - 1] if total_m > 0 else 0
if total > 0:
for media_handle in self.unused_media_handles:
gc.collect() # Reduce memory usage when many images.
if index == media_count:
next_ = None
else:
Expand Down Expand Up @@ -318,7 +315,6 @@ def medialistpage(self, report, the_lang, the_title, sorted_media_handles):
for media_handle in self.unused_media_handles:
gmfh = self.r_db.get_media_from_handle
media = gmfh(media_handle)
gc.collect() # Reduce memory usage when many images.
trow += Html("tr")
media_data_row = [
[index, "ColumnRowLabel"],
Expand Down

0 comments on commit 52bc16d

Please sign in to comment.