malawi_hiv_program_reports 1.1.6 → 1.1.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
  SHA256:
3
- metadata.gz: 1e9cba775f0bc9cd2eaa2f0d078186ce06a39b90bb2012a55b7e1430e675dd6b
4
- data.tar.gz: ffa4ed80f23149a3c41e1a0c90dd31de1a27325275655f2a292c850bae667fb3
3
+ metadata.gz: 4e0b69b71cc602b46a078ec2268db5c70a2a625da72227502eed6e4b577475cf
4
+ data.tar.gz: 6fb3e067f026fc6736a9989d13d5c985cc502a92857b262a37f7d582b617af18
5
5
  SHA512:
6
- metadata.gz: 0546e2d29b71951cf95ca6df50f82ca5e380e4a203cbbd23287aa48fe536503c1426eba5944693adac9b7291b6e685426659ad73616eebf91bba4694013ea2bb
7
- data.tar.gz: 07dca51e1fe44552a13896ecb1106f2e68240b05e462a72985b83bf250716b757c8b862cb37fba6e47333a4e1e8bf35d400500f71555f526a975e9449fd5cbea
6
+ metadata.gz: 25f3784be8c21dfcf64f908150d7b39c7f34c677e561792bbe1f34f6d54f20a4804f1b6f6b72b6971fb6bb5682a4657a0d85251c4c85346ef511f3edc84d59f8
7
+ data.tar.gz: 1232093418417aa87d440f045c163777cf564b4031b910d8946973424ea3edb2346d3a0b3961a46d026217fae56b6e811ca0e63d8699a0c343c19c4570d77ce6
@@ -71,12 +71,12 @@ module MalawiHivProgramReports
71
71
 
72
72
  def process_data
73
73
  process_db_data
74
- process_maternal_data
74
+ process_maternal_data if aggregation
75
75
  end
76
76
 
77
77
  # rubocop:disable Metrics/AbcSize
78
78
  def process_db_data
79
- fetch_data.each do |data|
79
+ (fetch_data || []).each do |data|
80
80
  age_group = data['age_group']
81
81
  regimen = data['regimen'] || 'unknown'
82
82
  patient_id = data['patient_id']
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MalawiHivProgramReports
4
- VERSION = '1.1.6'
4
+ VERSION = '1.1.7'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: malawi_hiv_program_reports
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roy Chanunkha