diff options
| author | Jan Tuomi <jan.tuomi@valuemotive.com> | 2021-02-14 17:01:19 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan.tuomi@valuemotive.com> | 2021-02-14 17:01:19 +0200 |
| commit | 54978eb6b515afd1da68642de07e482b09acf9f3 (patch) | |
| tree | ec310c4a2135be709a7f647e8df9073b5898cd1e /hommaexceli_py/dataclass_defs.py | |
| parent | fbdf6c694b5a92a663eac78230a85a47964a84a1 (diff) | |
Update last done in Sheets
Diffstat (limited to 'hommaexceli_py/dataclass_defs.py')
| -rw-r--r-- | hommaexceli_py/dataclass_defs.py | 22 |
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 |
