Archiviert
1
0

Teamname case ignore

Dieser Commit ist enthalten in:
Lixfel 2019-07-29 21:21:12 +02:00
Ursprung d5a8b275d0
Commit 33273be4fd

Datei anzeigen

@ -36,12 +36,12 @@ public class Team {
public static Team get(String name){
for(Team team : teamCache)
if(team.teamName.equals(name))
if(team.teamName.equalsIgnoreCase(name))
return team;
for(Team team : teamCache)
if(team.teamKuerzel.equals(name))
if(team.teamKuerzel.equalsIgnoreCase(name))
return team;
return load(sql.select("SELECT * FROM Team WHERE TeamName = '" + sql.disarmString(name) + "' OR TeamKuerzel = '" + sql.disarmString(name) + "'"));
return load(sql.select("SELECT * FROM Team WHERE lower(TeamName) = '" + sql.disarmString(name).toLowerCase() + "' OR lower(TeamKuerzel) = '" + sql.disarmString(name).toLowerCase() + "'"));
}
public static void clearCache(){