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" + themes_info[1] + " (tag) " + themes_info[2] + " | Date |
\n\t\t\t\n"
for theme in themes_info[0]:
name = theme[0].split('/')[1]
- row = "\t\t\t\t" + "" + name + """ | "
+ row = f"\t\t\t\t
{name} | "
row += "" + theme[2][:10] + " | "
row += "" + str(theme[3]) + '★' + " | "
row += "" + theme[1][:6] + " |
\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())]