Add 2022 year in review blog post

This commit is contained in:
Darren Burns
2022-12-20 17:24:19 +00:00
parent 59057eef83
commit b9238f4651
18 changed files with 359 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import json
from pathlib import Path
from rich.text import Text
@@ -64,7 +65,8 @@ class TreeApp(App):
def on_mount(self) -> None:
"""Load some JSON when the app starts."""
with open("food.json") as data_file:
file_path = Path(__file__).parent / "food.json"
with open(file_path) as data_file:
self.json_data = json.load(data_file)
def action_add(self) -> None: