Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Fachgruppenwebseite Metadaten
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fginfo
Fachgruppenwebseite Metadaten
Commits
d02f0c70
Verified
Commit
d02f0c70
authored
2 years ago
by
Jake
Browse files
Options
Downloads
Patches
Plain Diff
updated reader.py
parent
45a1d1b9
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fgs/reader.py
+2
-3
2 additions, 3 deletions
fgs/reader.py
with
2 additions
and
3 deletions
fgs/reader.py
+
2
−
3
View file @
d02f0c70
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment