From cff299c8a94bb83190df06a0578a764d51e98e16 Mon Sep 17 00:00:00 2001 From: xaloc Date: Fri, 23 Sep 2022 17:50:13 +0200 Subject: [PATCH] migrate tab title to title csv --- gencode.py | 2 +- index.html | 2 +- title.csv | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gencode.py b/gencode.py index 4e23d64..acaed2d 100644 --- a/gencode.py +++ b/gencode.py @@ -4,7 +4,7 @@ titleDF = pd.read_csv("title.csv") linksDF = pd.read_csv("links.csv") html = open("index.html", "w") -html.write("\n\n\n\tYour Links\n\t\n\t\n\t\n\n\n") +html.write(f"\n\n\n\t{titleDF['title'][0]}\n\t\n\t\n\t\n\n\n") html.write(f"\n\t

{titleDF['description'][0]}

\n
\n") for i,x in linksDF.iterrows(): html.write(f"
\n\n\t
\n\t
\n") diff --git a/index.html b/index.html index 53b8791..f177c18 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - Your Links + Your Title diff --git a/title.csv b/title.csv index af4eaad..3705e1b 100644 --- a/title.csv +++ b/title.csv @@ -1,2 +1,2 @@ -description,logo -Add here a description for people using this links,logo.png +description,logo,title +Add here a description for people using this links,logo.png,Your Title