Move generateMenu method to async background task.

This commit is contained in:
Felix Förtsch
2019-01-02 11:07:23 +01:00
parent c41cdb0f80
commit c28e932e84
7 changed files with 249 additions and 24 deletions
+3 -1
View File
@@ -52,9 +52,11 @@ class MatchesAPI {
newMatch.team1score = leftscore
newMatch.team2name = try match.getElementsByClass("team-right").text()
newMatch.team2score = rightscore
print(newMatch)
matches.append(newMatch)
}
if matches.count == 0 {
return nil
}
return matches
} catch Exception.Error(_, _) {
print("")