csgolytics 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 412c38c68d3b276c1ba455b085223bd268c96ef2
4
- data.tar.gz: da11269bd14f73804776ced99918d04dc73fed0e
3
+ metadata.gz: a3f58b7d3cbf460542c90e1394b6fcd3fa51847e
4
+ data.tar.gz: c2f631aac88ad8c707176cfc24fcc90748156748
5
5
  SHA512:
6
- metadata.gz: 6ace6b7b2276f5243213bfc139d37f314c3975ce6207bad74d693897c10f07a189a9a866afdcdab3d1034e9b911fef3bfe155311ecb1cf7885ddba15d4fb5ac7
7
- data.tar.gz: bcd346e552f32688630a0bf5cd3a65da04a731cba98959fe74ba2f3cb50a6abb80e263a2d1b653c0848240b0c3ccced2e81ef72196226b6bbcdaa6166404ba26
6
+ metadata.gz: 370e715cd51f8f0aabec72cd38b52adc0bf4a48a3d625ae0cbfc9fe34818749ad49fd58f966a6c7eb97d8ca7ac0c7edc0ff210662b0d4160ea148d3b8dab2661
7
+ data.tar.gz: dc9d064cbf47b7b2eef2561c7872f82caa25481df830acc8c161c0c1c4d986ba3aba798684f884e7046d9582eb4c42362404a576bab9f19821130c8cd69dd376
@@ -1,13 +1,12 @@
1
1
  CREATE TABLE csgo_assists (
2
- time_key uint64,
2
+ time datetime,
3
3
  event_id string,
4
4
  server_id string,
5
- time datetime,
6
5
  attacker_name string,
7
6
  attacker_steamid string,
8
7
  attacker_team string,
9
8
  victim_name string,
10
9
  victim_steamid string,
11
10
  victim_team string,
12
- PRIMARY KEY (time_key, event_id)
13
- ) WITH user_defined_partitions = "true";
11
+ PRIMARY KEY (time, event_id)
12
+ );
@@ -1,8 +1,7 @@
1
1
  CREATE TABLE csgo_frags (
2
- time_key uint64,
2
+ time datetime,
3
3
  event_id string,
4
4
  server_id string,
5
- time datetime,
6
5
  attacker_name string,
7
6
  attacker_steamid string,
8
7
  attacker_team string,
@@ -13,5 +12,5 @@ CREATE TABLE csgo_frags (
13
12
  headshoot bool,
14
13
  penetrated bool,
15
14
  distance double,
16
- PRIMARY KEY (time_key, event_id)
17
- ) WITH user_defined_partitions = "true";
15
+ PRIMARY KEY (time, event_id)
16
+ );
@@ -45,8 +45,6 @@ private
45
45
  return
46
46
  end
47
47
 
48
- ev[:time_key] = (Time.parse(ev[:time]).to_i / PARTITION_SIZE) * PARTITION_SIZE
49
-
50
48
  @db.insert!([{ :table => table, :database => @db.get_database, :data => ev }])
51
49
  end
52
50
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csgolytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Asmuth