diff --git a/scripts/watcher.py b/scripts/watcher.py index 6e94641..db04703 100644 --- a/scripts/watcher.py +++ b/scripts/watcher.py @@ -207,6 +207,12 @@ def get_changed_files(state: dict) -> list: continue if "Computational Design 2017" in path.parts and "Student Work" in path.parts: continue + if path.name in ("Renders.pptx", "Ribbon Cutting Slideshow.pptx") \ + and "Presentations" in path.parts: + continue + if path.name == "GH Slicer Notes [Autosaved].pptx" \ + and "DDF555 3D Computational" in path.parts: + continue if path.stat().st_size == 0: continue if state.get(str(path)) != str(path.stat().st_mtime): @@ -297,6 +303,12 @@ class IngestHandler(FileSystemEventHandler): return True if "Computational Design 2017" in path.parts and "Student Work" in path.parts: return True + if path.name in ("Renders.pptx", "Ribbon Cutting Slideshow.pptx") \ + and "Presentations" in path.parts: + return True + if path.name == "GH Slicer Notes [Autosaved].pptx" \ + and "DDF555 3D Computational" in path.parts: + return True return False def on_created(self, event):