summaryrefslogtreecommitdiff
path: root/src/pyssg/pyssg.py
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-04-20 23:41:56 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-04-20 23:41:56 -0600
commit7ecd3c9501a16da6c1872ed7521f93df9a8da7f5 (patch)
treeb1a4108b138acb34cd58f40a9221d245476e2be6 /src/pyssg/pyssg.py
parentcbcf4f6f2c2264cff9e52ebb1cfd654a302d74f0 (diff)
mayor bugfix in the database writerv0.6.2
database was writing only one of the file info, effectively deleting all db
Diffstat (limited to 'src/pyssg/pyssg.py')
-rw-r--r--src/pyssg/pyssg.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pyssg/pyssg.py b/src/pyssg/pyssg.py
index 931a55f..af7b166 100644
--- a/src/pyssg/pyssg.py
+++ b/src/pyssg/pyssg.py
@@ -76,7 +76,8 @@ def main() -> None:
if args['build']:
log.debug('building the html files')
- db: Database = Database(os.path.join(config.get('path', 'src'), '.files'))
+ db_path: str = os.path.join(config.get('path', 'src'), '.files')
+ db: Database = Database(db_path, config)
db.read()
builder: Builder = Builder(config, db)