aboutsummaryrefslogtreecommitdiffstats
path: root/hommaexceli_py/dataclass_defs.py
diff options
context:
space:
mode:
Diffstat (limited to 'hommaexceli_py/dataclass_defs.py')
-rw-r--r--hommaexceli_py/dataclass_defs.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/hommaexceli_py/dataclass_defs.py b/hommaexceli_py/dataclass_defs.py
new file mode 100644
index 0000000..d808fb8
--- /dev/null
+++ b/hommaexceli_py/dataclass_defs.py
@@ -0,0 +1,22 @@
+from dataclasses import dataclass
+import datetime
+
+
+@dataclass
+class SheetsRow:
+ interval: str
+ name: str
+ last_done: str
+
+ def __str__(self):
+ return f"{self.interval}, {self.name}, {self.last_done}"
+
+
+@dataclass
+class ProcessedRow:
+ name: str
+ next_datestamp: str
+ next_date: datetime.datetime
+ last_datestamp: str
+ last_date: datetime.datetime
+ interval: str