From d2a256bd775dac463c57f2122a0d70da3701f7ab Mon Sep 17 00:00:00 2001 From: olari Date: Thu, 17 Jun 2021 16:08:17 +0300 Subject: [PATCH] fix bug --- foods | 9 +++++++++ open-journal.py | 5 +---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/foods b/foods index e1d3936..0815449 100644 --- a/foods +++ b/foods @@ -1,4 +1,13 @@ +MangoIcecream +Energy 168kcal +Fat 5.8g +SaturatedFat 3.9g +Carbs 26g +Sugar 23g +Protein 2.9g +Salt 0.12g + Popcorn Energy 375kcal Fat 4.3g diff --git a/open-journal.py b/open-journal.py index 5746dd3..a4e46d0 100644 --- a/open-journal.py +++ b/open-journal.py @@ -7,9 +7,6 @@ import json from common import format_timestamp - - - current_date = datetime.now().strftime('%Y-%m-%d') current_time = datetime.now().strftime('%H:%M:%S') @@ -32,7 +29,7 @@ if not target_page.exists(): cwd=str(journal_path), stdout=DEVNULL, stderr=DEVNULL ) - journal = json.load(open('journal.json')) + journal = json.load(open(script_path / 'journal.json')) notifications = []