Fixed flash address
This commit is contained in:
parent
e5337a204b
commit
ac91871c3a
@ -136,7 +136,7 @@ def hkfcDMotmAdmin():
|
||||
print(urlSuffix)
|
||||
sql3 = "UPDATE hkfcDAdminSettings SET motmUrlSuffix='" + urlSuffix + "' WHERE userid='admin'"
|
||||
sql_write_static(sql3)
|
||||
flash('MotM URL https://hockey.ervine.cloud/hkfc-d/motm/'+urlSuffix)
|
||||
flash('MotM URL https://hockey.ervine.dev/hkfc-d/motm/'+urlSuffix)
|
||||
elif form.activateButton.data:
|
||||
sql4 = "ALTER TABLE _hkfc_d_motm ADD COLUMN motm_" + _nextFixture + " smallint DEFAULT 0, ADD COLUMN dotd_" + _nextFixture + " smallint DEFAULT 0, ADD COLUMN assists_" + _nextFixture + " smallint DEFAULT 0, ADD COLUMN goals_" + _nextFixture + " smallint DEFAULT 0 "
|
||||
sql_write(sql4)
|
||||
@ -145,7 +145,7 @@ def hkfcDMotmAdmin():
|
||||
currSuffix = tempSuffix[0]['motmUrlSuffix']
|
||||
print(currSuffix)
|
||||
flash('Man of the Match vote is now activated')
|
||||
flash('MotM URL https://hk-hockey.appspot.com/hkfc-d/motm/'+currSuffix)
|
||||
flash('MotM URL https://hockey.ervine.dev/hkfc-d/motm/'+currSuffix)
|
||||
else:
|
||||
flash('Something went wrong - check with Smithers')
|
||||
|
||||
@ -245,9 +245,9 @@ def hkfcD_vote_thanks():
|
||||
else:
|
||||
### The matchDate has been replaced with the matchNumber - this should be corrected at some point (via a fixture table lookup)
|
||||
sql3 = "INSERT INTO _motmComments (_matchDate, opposition, comment) VALUES ('" + _matchDate + "', '" + _oppo + "', '" + _fixed_comments + "')"
|
||||
#sql_write(sql3)
|
||||
#sql_write(sql)
|
||||
#sql_write(sql2)
|
||||
sql_write(sql3)
|
||||
sql_write(sql)
|
||||
sql_write(sql2)
|
||||
resp = make_response(render_template('_hkfcDVoteThanks.html'))
|
||||
resp.set_cookie('sessionID', identity)
|
||||
return resp
|
||||
|
||||
Loading…
Reference in New Issue
Block a user