summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-04-18 21:12:13 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-04-18 21:12:13 -0600
commitc888faca827733136edc1fa7ab310b702d43d7ab (patch)
treeeed88d25c455b753465146dbd113e8bee8523a39 /src
parent70215ecd6848c6139efa2d24b0f3facd84dca799 (diff)
minor debug fix for database
Diffstat (limited to 'src')
-rw-r--r--src/pyssg/database.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pyssg/database.py b/src/pyssg/database.py
index 837fac7..cd4646a 100644
--- a/src/pyssg/database.py
+++ b/src/pyssg/database.py
@@ -49,7 +49,7 @@ class Database:
# get current time, needs actual file name
time: float = os.stat(file_name).st_mtime
- log.debug('modified time for "%s": %f', file_name, time)
+ log.debug('modified time for "%s": %s', file_name, time)
# three cases, 1) entry didn't exist,
# 2) entry hasn't been mod and,
@@ -82,8 +82,7 @@ class Database:
f, old_time, time, ', '.join(tags))
return True
- log.warning('none of the case scenarios for updating'
- ' entry "%s" matched', f)
+ log.debug('entry "%s" hasn\'t been modified', f)
return False
@@ -128,12 +127,13 @@ class Database:
log.debug('parsing rows from db')
for it, row in enumerate(rows):
i = it + 1
- log.debug('row %d content: "%s"', i, row)
- l = tuple(row.strip().split())
+ r = row.strip()
+ log.debug('row %d content: "%s"', i, r)
+ l = tuple(r.split())
if len(l) != self.COLUMN_NUM:
log.critical('row %d doesn\'t contain %s columns,'
' contains %d elements; row %d content: "%s"',
- i, self.COLUMN_NUM, len(l), i, row)
+ i, self.COLUMN_NUM, len(l), i, r)
sys.exit(1)
t: list[str] = None