From ac91871c3a915fd2482351a75bb48315c38674c3 Mon Sep 17 00:00:00 2001 From: Jonathan Ervine Date: Sun, 22 Nov 2020 07:41:48 +0800 Subject: [PATCH] Fixed flash address --- routes/_hkfcD_motm.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/routes/_hkfcD_motm.py b/routes/_hkfcD_motm.py index a19f6bb..a20490c 100644 --- a/routes/_hkfcD_motm.py +++ b/routes/_hkfcD_motm.py @@ -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