summaryrefslogtreecommitdiff
path: root/app/controllers/matches_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/matches_controller.rb')
-rw-r--r--app/controllers/matches_controller.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/app/controllers/matches_controller.rb b/app/controllers/matches_controller.rb
index fc44e35..9c0a740 100644
--- a/app/controllers/matches_controller.rb
+++ b/app/controllers/matches_controller.rb
@@ -147,11 +147,12 @@ class MatchesController < ApplicationController
if (@match.status == 1)
@scores = @match.scores
end
- file_blue = "blue.yaml"
- file_purple = "purple.yaml"
- @blue2 = YAML.load_file(file_blue)
- @purp2 = YAML.load_file(file_purple)
-
+ if Tournament.find_by_id(@match.tournament_id).game_id == 1
+ file_blue = "blue.yaml"
+ file_purple = "purple.yaml"
+ @blue2 = YAML.load_file(file_blue)
+ @purp2 = YAML.load_file(file_purple)
+ end
end
def update