From 8d9ee6d9a0ca23a0ca6c67465c4c84e94224583a Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Tue, 19 Sep 2023 19:07:43 -0400 Subject: [PATCH] fix: Fix process_items if releases is empty --- spoonbill/stats.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spoonbill/stats.py b/spoonbill/stats.py index 13393db..cb7701c 100644 --- a/spoonbill/stats.py +++ b/spoonbill/stats.py @@ -294,6 +294,7 @@ def process_items(self, releases, with_preview=True): :param releases: The releases to analyze :param with_preview: Whether to generate previews for each table """ + count = 0 for count, release in enumerate(releases): to_analyze = deque([("", "", "", {}, release)]) rows = Rows(ocid=release["ocid"], buyer=release.get("buyer", {}), data=defaultdict(list))