Moving SQL statements
This commit is contained in:
parent
4d04ce697f
commit
4f9d54e855
@ -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'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user