blog #1

Merged
n merged 5 commits from blog into master 2021-03-08 23:23:01 +01:00
Showing only changes of commit 0d57449004 - Show all commits

View file

@ -34,6 +34,7 @@ mycursor.execute("SELECT post_url, post_title, post_content_xhtml FROM dc_post W
myresult = mycursor.fetchall() myresult = mycursor.fetchall()
f = open("index.gmi", "w") f = open("index.gmi", "w")
f.write("# Tourmentine's blog-to-gemlog\n\n");
f.close() f.close()
for x in myresult: for x in myresult:
@ -58,3 +59,6 @@ for x in myresult:
f.write("\n\n=> /blog/ Retour au menu du blog") f.write("\n\n=> /blog/ Retour au menu du blog")
f.close() f.close()
f = open("index.gmi", "a")
f.write("\n=> Retour")
f.close()