moosey-cms 0.3.0__py3-none-any.whl → 0.4.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,13 +5,13 @@ from watchdog.events import FileSystemEventHandler
5
5
  class FileChangeHandler(FileSystemEventHandler):
6
6
  def __init__(self, callback):
7
7
  self.callback = callback
8
- self.ts =0
8
+ self.ts = 0
9
9
 
10
10
  def on_any_event(self, event):
11
11
  if event.is_directory:
12
12
  return
13
13
 
14
- if event.event_type == "modified" or event.event_type == "created":
14
+ if event.event_type in ["modified", "created", "deleted"]:
15
15
  # Trigger the callback
16
16
  self.callback(event.src_path, event.event_type)
17
17
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moosey-cms
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.9
6
6
  Requires-Dist: cachetools>=6.2.4
@@ -1,7 +1,7 @@
1
1
  moosey_cms/.python-version,sha256=e1X45ntWI8S-8_ppEojalDfXnTq6FW3kjUgdsyrH0W0,5
2
2
  moosey_cms/__init__.py,sha256=y7gzxC1LB7qRmjqJHJpN4kEqBNAbuIwNc4xeEI2clMY,184
3
3
  moosey_cms/cache.py,sha256=YI6rRb4OVi-Mb1CmMW-jRz0CC9U6YZyszqLmjqLOsq8,2067
4
- moosey_cms/file_watcher.py,sha256=ViadvrDD2y0MN9VJlz9Kkp31qFkYBhDCoK7xtdA4tAY,923
4
+ moosey_cms/file_watcher.py,sha256=0miTFpKZuT8aZPTByC0OVRr8A0mIG-fgPGrz2QfMG1k,915
5
5
  moosey_cms/filters.py,sha256=QIHeffZAxn4KqQE4zwR4D7njE96L-oeqHc5DYrYgCpw,15983
6
6
  moosey_cms/helpers.py,sha256=m94mDAaDKiH6wvzqoICQuavJ53EVTJ5VmJiRsfLT38o,10277
7
7
  moosey_cms/hot_reload_script.py,sha256=Dflj5hgHVkVOfjeU7wzEUeVTt684nj22et8jKzVFEGw,2987
@@ -12,6 +12,6 @@ moosey_cms/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  moosey_cms/pyproject.toml,sha256=lFRsY2yJOKtDWJc-Mfq9s0teGrhmB3ALDJyMltjBOGg,735
13
13
  moosey_cms/seo.py,sha256=jQ2FVuELNoytJkbp0ILK_IF7sZSaz9fkl59HM7xlg70,5246
14
14
  moosey_cms/static/js/reload-script.js,sha256=hnrVXEWeTK-Y2vLeADmtlZ7fOXpDJMF-0zK09o3mrOA,2247
15
- moosey_cms-0.3.0.dist-info/METADATA,sha256=QbhE3Wg-XFHAQNRF4pe6kK8BjyVNfIXgoBR0KLyv3BY,10899
16
- moosey_cms-0.3.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
17
- moosey_cms-0.3.0.dist-info/RECORD,,
15
+ moosey_cms-0.4.0.dist-info/METADATA,sha256=LrcBDpkWXF8ya0GC6cc_zCxvmADK6JaVFpo51hWLBhM,10899
16
+ moosey_cms-0.4.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
17
+ moosey_cms-0.4.0.dist-info/RECORD,,