1.1.0 - automations, clean only mode, bug fixes

This commit is contained in:
ponzischeme89
2026-01-19 02:10:08 +13:00
parent 93e8b38e24
commit 9345ac4331
25 changed files with 2690 additions and 499 deletions
+25
View File
@@ -0,0 +1,25 @@
from __future__ import annotations
from dataclasses import dataclass
from typing import List
@dataclass(slots=True)
class AutomationRule:
id: str
name: str
schedule: str
enabled: bool
patterns: List[str]
target_folders: List[str]
@staticmethod
def from_dict(data: dict) -> "AutomationRule":
return AutomationRule(
id=str(data.get("id", "")),
name=str(data.get("name", "")),
schedule=str(data.get("schedule", "")),
enabled=bool(data.get("enabled", True)),
patterns=list(data.get("patterns", []) or []),
target_folders=list(data.get("target_folders", []) or []),
)