From bcc1d73f0c280998532825d4d75748a4c7c62f77 Mon Sep 17 00:00:00 2001 From: Macsim Date: Sat, 14 Feb 2026 13:48:53 +0300 Subject: [PATCH] some fixes to update notifications --- update_diffs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/update_diffs.py b/update_diffs.py index 114a996..3b9ba87 100644 --- a/update_diffs.py +++ b/update_diffs.py @@ -85,10 +85,9 @@ def get_file_diff(file_path, base_commit): def is_module_file(file_path): """Check if file is a Python module in a modules directory""" # Check if it's a .py file and in a modules-like directory - return file_path.endswith('.py') and any( - part in file_path.lower() for part in [ - 'modules', 'mods', 'ftg', 'hikka' - ] + dir_depth = len(Path(file_path).parts) + return file_path.endswith('.py') and ( + dir_depth := len(Path(file_path).parts) >= 2 ) def extract_module_name(file_path): @@ -135,6 +134,7 @@ async def main(): diff_url = f"https://github.com/MuRuLOSE/limoka/compare/{old_hash}...{new_hash}.diff" message = ( f"🪼 Module {module_name} changes approved\n\n" + # f"🪼 Module {module_name} by ueban123 changes approved\n\n" f"File URL | " f"Diff URL" )