Skip to content
Snippets Groups Projects
Verified Commit d02f0c70 authored by Jake's avatar Jake
Browse files

updated reader.py

parent 45a1d1b9
No related branches found
No related tags found
Loading
......@@ -4,7 +4,6 @@ import pandoc
import frontmatter
from datetime import datetime
from dateutil import parser as dtparser
import subprocess
import os
......@@ -80,9 +79,9 @@ class MarkdownReader:
date_modified = datetime.fromisoformat(date_changes[0])
date_created = datetime.fromisoformat(date_changes[-1])
if 'date' in metadata:
date_created = dtparser.parse(metadata['date'])
date_created = metadata['date']
if 'modified' in metadata:
date_modified = dtparser.parse(metadata['modified'])
date_modified = metadata['modified']
#print("created: ", date_created)
#print("last changed: ", date_modified)
......
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