summaryrefslogtreecommitdiff
path: root/src/pyssg/database.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/pyssg/database.py')
-rw-r--r--src/pyssg/database.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pyssg/database.py b/src/pyssg/database.py
index 61ca502..1b421c0 100644
--- a/src/pyssg/database.py
+++ b/src/pyssg/database.py
@@ -7,9 +7,8 @@ class Database:
self.db_path: str = db_path
self.e: dict[str, tuple[float, float, list[str]]] = dict()
- self.__read()
-
+ # updates the tags for a specific entry (file)
def update_tags(self, file_name: str,
tags: list[str]) -> None:
if file_name in self.e:
@@ -68,7 +67,7 @@ class Database:
file.write(f'{k} {v[0]} {v[1]} {t}\n')
- def __read(self) -> None:
+ def read(self) -> None:
# only if the path exists and it is a file
if os.path.exists(self.db_path) and os.path.isfile(self.db_path):
# get all db file lines