sportdb-sync 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sportdb/sync/sync.rb +6 -1
- data/lib/sportdb/sync/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d6f63ecc82fe0773b77ffac62a59b62a70ac018
|
4
|
+
data.tar.gz: cf11d7385ccde200b85638cd1de92b830ab2696c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7ed1a5553ff8d1a79dcbc56efbe9b681dd6aeaa20c18fb1e1a85541329163ef53afc2217609955e66e295155c58edb0e247308b93cfa15e143e86e3d7e5e700
|
7
|
+
data.tar.gz: e21fed2e8925f362b9c5b135db21f5d466e4758f04d8f591762db3e37ad4f55814c0337a7c256ec8c8c398dd7d767cb221a51f8c1dd71bb830c4b35999afc1a0
|
data/lib/sportdb/sync/sync.rb
CHANGED
@@ -192,7 +192,12 @@ module SportDb
|
|
192
192
|
end
|
193
193
|
|
194
194
|
### todo/check: what happens if there's more than one match? exception raised??
|
195
|
-
rec = if
|
195
|
+
rec = if ['N. N.'].include?( team1_name ) && ## some special cases - always assume new record for now (to avoid ambigious update conflict)
|
196
|
+
['N. N.'].include?( team2_name )
|
197
|
+
## always assume new record for now
|
198
|
+
## check for date or such - why? why not?
|
199
|
+
nil
|
200
|
+
elsif round_rec
|
196
201
|
## add match status too? allows [abandoned] and [replay] in same round
|
197
202
|
find_attributes = { round_id: round_rec.id,
|
198
203
|
team1_id: team1_rec.id,
|
data/lib/sportdb/sync/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb-sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sportdb-catalogs
|