summaryrefslogtreecommitdiff
path: root/tropical/env.py
diff options
context:
space:
mode:
authorLoïc Guégan <loic.guegan@mailbox.org>2024-09-18 18:32:24 +0200
committerLoïc Guégan <loic.guegan@mailbox.org>2024-09-18 18:32:24 +0200
commit76ddf4fe100d7023451eb3b3134de4a11a7ad852 (patch)
tree5df054573ab4c7efc1c45bf1c977e37f94ff40fa /tropical/env.py
parent171fbd28a33bd71a2b17b35c558c2029f4b72a0a (diff)
Minor changes
Diffstat (limited to 'tropical/env.py')
-rw-r--r--tropical/env.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tropical/env.py b/tropical/env.py
index 834f7e2..900c089 100644
--- a/tropical/env.py
+++ b/tropical/env.py
@@ -1,6 +1,7 @@
from pathlib import Path
from db import CalDB
+from calstate import CalState
import configparser
from enum import Enum
from datetime import date, timedelta
@@ -40,6 +41,7 @@ class Env:
# Database
self.dbFile=self.confdir / "sqlite3.db"
self.db=CalDB(str(self.dbFile))
+ self.calState=CalState()
def initConfig(self):
self.config["global"]={"new":True}
@@ -57,4 +59,3 @@ class Env:
events.append(e)
# TODO: Account for repeat
return events
-