Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
iandennismiller committed Jun 28, 2023
1 parent e7514d3 commit 9d29344
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/gthnk/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import sys
import logging
from typing import List

from dotenv import dotenv_values
Expand Down
2 changes: 1 addition & 1 deletion src/gthnk/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def config(gthnk_path:str, current:bool):
if current:
gthnk = Gthnk()
with open(gthnk.config_filename, 'r', encoding="utf-8") as file_handle:
buf = file_handle.read()
buf = f"# Filename: {gthnk.config_filename}\n" + file_handle.read()
else:
secret_key = str(os.urandom(24))
buf = CONFIG_TEMPLATE.format(
Expand Down
2 changes: 2 additions & 0 deletions src/gthnk_web/journal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def live_view():
@journal.route("<date>.html")
def day_view(date):
"View the specified day as HTML."
# check for any new days that have been added
gthnk.filetree.read_journal()
day = gthnk.journal.get_day(date)
# if there is any content, this day exists
if len(day.entries) > 0:
Expand Down

0 comments on commit 9d29344

Please sign in to comment.