Skip to content
Snippets Groups Projects
Commit 7e44d45f authored by Jasper Clemens Gräflich's avatar Jasper Clemens Gräflich
Browse files

Fix journal_entry to use correct section titles

parent bbb5e224
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ def update(new_date): ...@@ -53,7 +53,7 @@ def update(new_date):
# Create new entry # Create new entry
create_entry(previous, lines[lines.index( create_entry(previous, lines[lines.index(
"## Future Tasks\n")+1:], new_date) "## Upcoming Tasks\n")+1:], new_date)
# Modify MoC # Modify MoC
with open("./journal/map-of-contents.md", "a") as moc: with open("./journal/map-of-contents.md", "a") as moc:
...@@ -76,7 +76,7 @@ def create_entry(previous, prev_tasks, day): ...@@ -76,7 +76,7 @@ def create_entry(previous, prev_tasks, day):
"## Tasks\n", "## Tasks\n",
] ]
lines.extend(prev_tasks) lines.extend(prev_tasks)
lines.extend(("\n", "## Future Tasks\n\n", "- [ ]\n\n")) lines.extend(("\n", "## Upcoming Tasks\n\n", "- [ ]\n\n"))
with open(f"./journal/{day}.md", 'w') as file: with open(f"./journal/{day}.md", 'w') as file:
file.writelines(lines) file.writelines(lines)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment