Removed authentication

This commit is contained in:
Jonathan Ervine 2020-11-25 20:46:47 +08:00
parent cd5ff1fc0d
commit 43561c926a

View File

@ -137,7 +137,7 @@ def hkfcDMotmAdmin():
print(urlSuffix) print(urlSuffix)
sql3 = "UPDATE hkfcDAdminSettings SET motmUrlSuffix='" + urlSuffix + "' WHERE userid='admin'" sql3 = "UPDATE hkfcDAdminSettings SET motmUrlSuffix='" + urlSuffix + "' WHERE userid='admin'"
sql_write_static(sql3) sql_write_static(sql3)
flash('MotM URL https://hk-hockey.appspot.com/hkfc-d/motm/'+urlSuffix) flash('MotM URL https://hockey.ervine.cloud/hkfc-d/motm/'+urlSuffix)
elif form.activateButton.data: 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 " 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) sql_write(sql4)
@ -146,7 +146,7 @@ def hkfcDMotmAdmin():
currSuffix = tempSuffix[0]['motmUrlSuffix'] currSuffix = tempSuffix[0]['motmUrlSuffix']
print(currSuffix) print(currSuffix)
flash('Man of the Match vote is now activated') 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.ppspone.cloud/hkfc-d/motm/'+currSuffix)
else: else:
flash('Something went wrong - check with Smithers') flash('Something went wrong - check with Smithers')