From 52bc16d78fab2ef115673cc5aeb6fcd2033d6095 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Tue, 16 Jul 2024 10:15:45 +0200 Subject: [PATCH] Media performances in the narrative web. Fixes #13370 --- gramps/plugins/webreport/media.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gramps/plugins/webreport/media.py b/gramps/plugins/webreport/media.py index 06033f94e25..0fe5d60d532 100644 --- a/gramps/plugins/webreport/media.py +++ b/gramps/plugins/webreport/media.py @@ -42,7 +42,6 @@ # ------------------------------------------------ # python modules # ------------------------------------------------ -import gc import os import shutil import tempfile @@ -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: @@ -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: @@ -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"],