Skip to content

Commit

Permalink
modtime fix
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jan 20, 2024
1 parent 26454b6 commit 9f5c758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sparqlunicorn_ontdoc/docgeneration.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
print(sys.path)
print(os.path.dirname(os.path.realpath(__file__)))
print(os.listdir(os.getcwd()))
from datetime import datetime
from doc.docutils import DocUtils
from doc.docdefaults import DocDefaults
from doc.docconfig import DocConfig
Expand Down Expand Up @@ -1560,8 +1561,7 @@ def main():
try:
g = Graph()
g.parse(fp)
modtimed=os.path.getmtime(fp)
modtime = modtimed.strftime("%Y-%m-%dT%H:%M:%S")
modtime=datetime.fromtimestamp(os.path.getmtime(fp)).strftime("%Y-%m-%dT%H:%M:%S")
if args.prefixns==None or args.prefixns=="None":
print("No Datanamespace defined. Trying to detect it...")
pres=DocUtils.getDataNamespace(g)
Expand Down

0 comments on commit 9f5c758

Please sign in to comment.