From a8aedce1ab08ce9e0f92e42919a883288928258c Mon Sep 17 00:00:00 2001 From: Jonathan Ervine Date: Tue, 17 Mar 2020 15:40:54 +0800 Subject: [PATCH] modified: routes/_hkfcD_motm.py Fixed nextClub lookup for comments --- routes/_hkfcD_motm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/_hkfcD_motm.py b/routes/_hkfcD_motm.py index c74d13b..484fc3e 100644 --- a/routes/_hkfcD_motm.py +++ b/routes/_hkfcD_motm.py @@ -61,7 +61,9 @@ def hkfcD_motm_vote(randomUrlSuffix): def hkfcd_match_comments(): sql = "SELECT nextClub, nextTeam, nextDate, oppoLogo, hkfcLogo FROM hkfcDAdminSettings" row = sql_read_static(sql) - _oppo = row[0]['nextClub'] + " " + row[0]['nextTeam'] +# nextTeam already seems to include all the team+club details +# _oppo = row[0]['nextClub'] + " " + row[0]['nextTeam'] + _oppo = row[0]['nextClub'] commentDate = row[0]['nextDate'].strftime('%Y-%m-%d') _matchDate = row[0]['nextDate'].strftime('%Y_%m_%d') hkfcLogo = row[0]['hkfcLogo']