From 92156eaf948784909d0c0f78df4fca7861eb1d05 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 4 Nov 2019 12:48:29 +0100 Subject: [PATCH] Fix website? Maybe? --- royalnet/version.py | 2 +- royalnet/web/royalprints/profile/__init__.py | 3 +-- royalnet/web/royalprints/profile/templates/profile_page.html | 5 ----- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/royalnet/version.py b/royalnet/version.py index 1318b8c1..718ed858 100644 --- a/royalnet/version.py +++ b/royalnet/version.py @@ -1,4 +1,4 @@ -semantic = "5.0a82" +semantic = "5.0a83" if __name__ == "__main__": print(semantic) diff --git a/royalnet/web/royalprints/profile/__init__.py b/royalnet/web/royalprints/profile/__init__.py index 3f4aece6..6fded50f 100644 --- a/royalnet/web/royalprints/profile/__init__.py +++ b/royalnet/web/royalprints/profile/__init__.py @@ -11,8 +11,7 @@ from royalnet.packs.royal.tables import * # Maybe some of these tables are optional... tmpl_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'templates') rp = Royalprint("profile", __name__, url_prefix="/profile", template_folder=tmpl_dir, - required_tables={User, ActiveKvGroup, Alias, Diario, Discord, Keygroup, Keyvalue, Telegram, WikiPage, - WikiRevision, Bio, TriviaScore}) + required_tables={User, Alias, Diario, Discord, Telegram, WikiPage, WikiRevision, Bio, TriviaScore}) @rp.route("/") diff --git a/royalnet/web/royalprints/profile/templates/profile_page.html b/royalnet/web/royalprints/profile/templates/profile_page.html index 55e8e091..3cf2598f 100644 --- a/royalnet/web/royalprints/profile/templates/profile_page.html +++ b/royalnet/web/royalprints/profile/templates/profile_page.html @@ -69,11 +69,6 @@
  • Righe del diario create: {{ royal.diario_created|length }}
  • Righe del diario in cui รจ menzionato: {{ royal.diario_quoted|length }}
  • Modifiche alla wiki: {{ royal.wiki_contributions|length }} - {% if royal.active_kv_group %} -
  • Kvgroup attivo: {{ royal.active_kv_group[0].group_name }}
  • - {% else %} -
  • Kvgroup attivo: Nessuno
  • - {% endif %} {% if royal.trivia_score %}
  • Punteggio trivia: {{ royal.trivia_score.correct_answers }}/{{ royal.trivia_score.total_answers }}
  • {% else %}