From 172800ca1cdfe90049f3a0580a3a61499ca54676 Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Mon, 9 Aug 2021 16:02:28 -0700 Subject: [PATCH] fix href link in html page --- rank_hugo_themes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rank_hugo_themes.py b/rank_hugo_themes.py index 7d45eed..0d91ac3 100755 --- a/rank_hugo_themes.py +++ b/rank_hugo_themes.py @@ -467,7 +467,7 @@ def make_table(themes_info): table = "\t
\n\t\t\n\t\t\t\n\t\t\t\n" for theme in themes_info[0]: name = theme[0].split('/')[1] - row = "\t\t\t\t" + row = f"\t\t\t\t" row += "" row += "" row += "\n" @@ -491,8 +491,8 @@ def make_section(section_info): def write_reports(): session = sessionmaker(bind=engine)() u, v, w, x, y, z = Hugothemes.name, Hugothemes.commit_sha, Hugothemes.commit_date, Hugothemes.stargazers_count, Hugothemes.url, Hugothemes.commit_date_in_seconds - themes_bydate_list = [(vals) for (vals) in session.query(u, v, w, x, y).filter(Hugothemes.name != THEMESLISTREPO).order_by(z.desc())] - themes_bystars_list = [(vals) for (vals) in session.query(u, v, w, x, y).filter(Hugothemes.name != THEMESLISTREPO).order_by(x.desc())] + themes_bydate_list = [(vals) for (vals) in session.query(u, v, w, x, y).order_by(z.desc())] + themes_bystars_list = [(vals) for (vals) in session.query(u, v, w, x, y).order_by(x.desc())] themes = [theme[0] for theme in themes_bystars_list] tags_list = [('all', str(themes), len(themes))] tags_list += [(vals) for (vals) in session.query(Tags.tag, Tags.theme_list, Tags.num_themes).filter(Tags.num_themes > 2).order_by(Tags.num_themes.desc())]
" + themes_info[1] + " (tag) " + themes_info[2] + "Date
" + "" + name + """
{name}" + theme[2][:10] + "" + str(theme[3]) + '★' + "" + theme[1][:6] + "