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