vulgata 0.3.6 → 0.3.7

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: ec96b3ecdb111dec6dcbc0f39af689d47c372a06
4
- data.tar.gz: 5741bd732d877bac2c62d39151e2a0fa0c7be85a
3
+ metadata.gz: 9da976118b621606f01818f8ace6447391b6dc5f
4
+ data.tar.gz: 9d24f9d430909a5d4c96c3eb356220aefb859d1f
5
5
  SHA512:
6
- metadata.gz: ed21ecd2b2d087f6466741f1387214de0b5dd10a2ff58af8e6af27680e28541e1490c2736c87da2a2f21f12f225e519199385a69420b8255c28da877515cd515
7
- data.tar.gz: 12301fad209acb8250bd0ee6edf3ed0ba7e6c55b7611896cd26c8371c8ab520c0035bc6d6fdfc9e100bbb81bb6ea55a3f6876de49b1488aa3fb6cf7cd5f1b83f
6
+ metadata.gz: c4080d90e16de6e9eb7094218def5f9b143331275436f1b15ecc086736bbdabb1d958e584d49f207452a5cea617fe2da2db59db23cfd5d60955a5279ca15b324
7
+ data.tar.gz: d450f6e2ea58cfd4af5d4e1ca44bcfc75747d5aeffd80c5f6157520c2ff49e286c65a1a9f6a13d0b530ebcb0a5e75c72d460d9bcae7044f3b80228448f4656ff
@@ -26,7 +26,9 @@ module Vulgata
26
26
 
27
27
  @total_translated = Vulgata::TranslationStateVersion.where(status: Vulgata::TranslationState.statuses[:done])
28
28
  @total_translated = @total_translated.where(user: @user)
29
- @total_translated = @total_translated.group(:vulgata_translation_state_id).length || 0
29
+ @total_translated = @total_translated.group(:vulgata_translation_state_id)
30
+ @total_translated = @total_translated.select(:vulgata_translation_state_id)
31
+ @total_translated = @total_translated.length || 0
30
32
 
31
33
  @translated_this_week = translated_in_time_period(DateTime.current.beginning_of_week)
32
34
  @translated_this_month = translated_in_time_period(DateTime.current.beginning_of_month)
@@ -1,3 +1,3 @@
1
1
  module Vulgata
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vulgata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Gehtman