Moving SQL statements

This commit is contained in:
Jonathan Ervine 2020-12-11 10:14:23 +08:00
parent 4d04ce697f
commit 4f9d54e855

View File

@ -64,7 +64,6 @@ def convenorAddTeamResult():
clubTeam_lookup = "SELECT club, team FROM _clubTeams WHERE club='" + _club + "' AND team='" + _team + "'"
clubTeam_create = "INSERT INTO _clubTeams (club, team) VALUES ('" + _club + "', '" + _team + "')"
if _club and _team and request.method == 'POST':
sql =
teamExist = sql_read(clubTeam_lookup)
if teamExist:
return 'Team already exists in the database'