mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +00:00
Fix sitemap.py breaking after moving it inside the scripts folder
This commit is contained in:
parent
b683580b1b
commit
bec7ef96eb
@ -51,7 +51,7 @@ with open("sitemap.xml", "w") as f:
|
|||||||
if not path.endswith(".rst"):
|
if not path.endswith(".rst"):
|
||||||
return
|
return
|
||||||
|
|
||||||
path = path.split("/")[1:]
|
path = path.split("/")[2:]
|
||||||
|
|
||||||
if path[0].endswith(".rst"):
|
if path[0].endswith(".rst"):
|
||||||
folder = "."
|
folder = "."
|
||||||
@ -76,6 +76,6 @@ with open("sitemap.xml", "w") as f:
|
|||||||
f.write(f" <lastmod>{i[1]}</lastmod>\n")
|
f.write(f" <lastmod>{i[1]}</lastmod>\n")
|
||||||
f.write(f" <changefreq>{i[2]}</changefreq>\n")
|
f.write(f" <changefreq>{i[2]}</changefreq>\n")
|
||||||
f.write(f" <priority>{i[3]}</priority>\n")
|
f.write(f" <priority>{i[3]}</priority>\n")
|
||||||
f.write(f" </url>\n\n")
|
f.write(f" </url>\n")
|
||||||
|
|
||||||
f.write("</urlset>")
|
f.write("</urlset>")
|
||||||
|
Loading…
Reference in New Issue
Block a user