1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2024-12-26 05:42:23 +00:00

Buggy markdown

This commit is contained in:
Yohann D'ANELLO 2020-10-26 14:33:52 +01:00
parent 9afb750be6
commit 6abbaaf75d

View File

@ -19,7 +19,7 @@ class Command(BaseCommand):
for model_class, file_name in [(BD, "bd.md"), (Manga, "mangas.md"), (Roman, "romans.md"), for model_class, file_name in [(BD, "bd.md"), (Manga, "mangas.md"), (Roman, "romans.md"),
(CD, "cd.md"), (Vinyle, "vinyle.md")]: (CD, "cd.md"), (Vinyle, "vinyle.md")]:
with open(directory + "/docs/" + file_name, "w") as f: with open(directory + "/docs/" + file_name, "w") as f:
f.write("# " + str(model_class._meta.verbose_name)) f.write("# " + str(model_class._meta.verbose_name) + "\n\n\n")
titles = list(set(obj["title"] for obj in model_class.objects.values("title").distinct().all())) titles = list(set(obj["title"] for obj in model_class.objects.values("title").distinct().all()))
titles.sort() titles.sort()
@ -46,7 +46,7 @@ class Command(BaseCommand):
# Traitement différent pour les revues # Traitement différent pour les revues
with open(directory + "/docs/revues.md", "w") as f: with open(directory + "/docs/revues.md", "w") as f:
f.write("# Revues") f.write("# Revues\n\n\n")
titles = list(set(obj["title"] for obj in Revue.objects.values("title").distinct().all())) titles = list(set(obj["title"] for obj in Revue.objects.values("title").distinct().all()))
titles.sort() titles.sort()