frecon 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/frecon/base/variables.rb +1 -1
- data/lib/frecon/controller.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db237e76c74ecaf128c7b986136516d29f780cca
|
4
|
+
data.tar.gz: 82bb1cfe4f705c83a27f9ed22a3417fae8c18161
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b47d5f45113e9a0d53dfe466b320c80347dcf7caf836f8daaca93d5ef4a557718e3a048ce2e5d1716fea3b53207b7e8a32baa021108fb564e89d0361187ca329
|
7
|
+
data.tar.gz: 5472f1258969eb8ccf41c82b99741658ba5dc3a335b80a98374dfd8658eb0b888a8fe44fb14a6c4871575755bfb8c2fff34bdbe13be6ba1a66d035fcb8a7f9ea
|
data/lib/frecon/controller.rb
CHANGED
@@ -163,6 +163,8 @@ module FReCon
|
|
163
163
|
|
164
164
|
post_data.delete("match_number")
|
165
165
|
post_data.delete("competition_name")
|
166
|
+
|
167
|
+
post_data
|
166
168
|
elsif post_data["competition"] && post_data["competition"]["_id"] && post_data["competition"]["_id"]["$oid"] && (competition = Competition.find_by(id: post_data["competition"]["_id"]["$oid"]))
|
167
169
|
# Try to set the match to the already existing match.
|
168
170
|
match = competition.matches.find_by number: post_data["match_number"]
|
@@ -178,6 +180,8 @@ module FReCon
|
|
178
180
|
|
179
181
|
post_data.delete("match_number")
|
180
182
|
post_data.delete("competition")
|
183
|
+
|
184
|
+
post_data
|
181
185
|
else
|
182
186
|
raise RequestError.new(422, "A current competition is not set. Please set it.")
|
183
187
|
end
|