From 09c73468525851b7fb8a6cf86051fbf052ebcf23 Mon Sep 17 00:00:00 2001 From: SowinskiBraeden Date: Sat, 10 May 2025 12:00:03 -0700 Subject: [PATCH] fix/ignored image files --- insights.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/insights.py b/insights.py index 5cfdf15..e003fcd 100755 --- a/insights.py +++ b/insights.py @@ -10,6 +10,10 @@ import shutil IGNORED: List[str] = [ "node_modules/", ".min.", + ".png", + ".jpg", + ".webp", + ".ico", "bootstrap/", ".history/", "package-lock.json", @@ -122,7 +126,7 @@ async def getInsights(repoURL: str, teamID: str) -> Dict[str, str|List]: offset += 1 continue - if "Bin" in lines[offset] and "bytes" in lines[offset] and "->" in lines[offset]: + if " Bin " in lines[offset] and " bytes" in lines[offset] and " -> " in lines[offset]: offset += 1 continue