Commit 1ed35ca3 authored by Turid Cecilie Dahl's avatar Turid Cecilie Dahl
Browse files

#97 fetches round when clicking on tournament

parent a1915afe
...@@ -68,7 +68,12 @@ public class ViewTournamentState extends State { ...@@ -68,7 +68,12 @@ public class ViewTournamentState extends State {
this.tournament = tournament; this.tournament = tournament;
} }
this.round = r; try{
this.round = QueryIntermediate.getRoundFromTournament(this.tournament.get_id(), GameWare.getInstance().getPlayer().getId(), this.tournament.getCurrentRound());
}catch(IOException e){
this.round = r;
}
titleLabel.setText(tournament.getName()); titleLabel.setText(tournament.getName());
roundDeadline.setText("Round deadline\n"+round.getDeadlineDate().toLocaleString()); roundDeadline.setText("Round deadline\n"+round.getDeadlineDate().toLocaleString());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment