modified: routes/_hkfcD_motm.py

Fixed nextClub lookup for comments
This commit is contained in:
Jonathan Ervine 2020-03-17 15:40:54 +08:00
parent c3e9b520d1
commit a8aedce1ab

View File

@ -61,7 +61,9 @@ def hkfcD_motm_vote(randomUrlSuffix):
def hkfcd_match_comments(): def hkfcd_match_comments():
sql = "SELECT nextClub, nextTeam, nextDate, oppoLogo, hkfcLogo FROM hkfcDAdminSettings" sql = "SELECT nextClub, nextTeam, nextDate, oppoLogo, hkfcLogo FROM hkfcDAdminSettings"
row = sql_read_static(sql) 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') commentDate = row[0]['nextDate'].strftime('%Y-%m-%d')
_matchDate = row[0]['nextDate'].strftime('%Y_%m_%d') _matchDate = row[0]['nextDate'].strftime('%Y_%m_%d')
hkfcLogo = row[0]['hkfcLogo'] hkfcLogo = row[0]['hkfcLogo']