Skip to content

Commit

Permalink
Update create_readme.py
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr authored Jan 30, 2025
1 parent b1d5e11 commit f585420
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/create_readme.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from os import error
from pathlib import Path
import requests
from datetime import datetime
from datetime import datetime, timezone
from jinja2 import Template
import logging
import re
Expand Down Expand Up @@ -150,11 +150,11 @@ def main():
logger.error("Something likely went wrong as there are not enough repos listed, don't override README")
sys.exit(1)

now = datetime.utcnow().strftime("%b %d %Y, %H:%M %Z")
now = datetime.now(timezone.utc).strftime("%b %d %Y, %H:%M %Z")
template = Template(Path("./python/README_TEMPLATE.md.jinja").read_text())

with Path("./README.md") as f:
f.write_text(template.render(extensions=data, maturities=maturities, updated=now, count=count))
f = Path("./README.md"):
f.write_text(template.render(extensions=data, maturities=maturities, updated=now, count=count))

sys.exit(0)

Expand Down

0 comments on commit f585420

Please sign in to comment.