diff options
| author | Christian Cleberg <[email protected]> | 2025-08-22 19:42:00 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2025-08-22 19:42:00 -0500 |
| commit | 2aceaf0d49d4655b2802a863a04b1c01f1a0405b (patch) | |
| tree | 98e0c8024f750f74ac4c883db42e87aef8303aa9 | |
| parent | d308865805f86f3da6fb101002075e8198d8cd6c (diff) | |
| download | cleberg.net-2aceaf0d49d4655b2802a863a04b1c01f1a0405b.tar.gz cleberg.net-2aceaf0d49d4655b2802a863a04b1c01f1a0405b.tar.bz2 cleberg.net-2aceaf0d49d4655b2802a863a04b1c01f1a0405b.zip | |
remove unecessary print statement and fix deprecated UTC function call
| -rw-r--r-- | build.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -291,7 +291,7 @@ def generate_sitemap(build_dir=".build", base_url="https://cleberg.net"): loc = f"{base_url}{url_path}" # Last modified time - lastmod = datetime.utcfromtimestamp( + lastmod = datetime.fromtimestamp( os.path.getmtime(full_path) ).strftime("%Y-%m-%d") @@ -306,7 +306,6 @@ def generate_sitemap(build_dir=".build", base_url="https://cleberg.net"): </urlset> """ # Write to .build/sitemap.xml - print(build_dir) sitemap_path = os.path.join(build_dir, "sitemap.xml") with open(sitemap_path, "w", encoding="utf-8") as f: f.write(sitemap_xml) |
