Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Create record of none for period when no data
Browse files Browse the repository at this point in the history
Don't accidentially go back to a period with data. There should be data
there
  • Loading branch information
jcbashdown committed Jul 14, 2015
1 parent 36d2a0e commit 11d6c85
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def _get_stripped_down_data_for_data_point_name_only(
if field in latest_data_points:
new_data[field] = latest_data_points[field]
else:
return None
new_data[field] = None
for field in ADDITIONAL_FIELDS:
if field in latest_data_points:
new_data[field] = latest_data_points[field]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,16 @@
"dashboard_slug": "bis-returns",
"total_cost": 11767069.6,
"type": "seasonally-adjusted"
},
{
'number_of_digital_transactions': None,
'_timestamp': u'2013-04-01T00:00:00+00:00',
'period': u'year',
'end_at': u'2012-04-01T00:00:00+00:00',
'dashboard_slug': 'bis-returns',
'service_id': u'bis-annual-returns',
"_id": encode_id('bis-returns', 'number_of_digital_transactions'),
'type': u'seasonally-adjusted'
}
]

Expand Down

0 comments on commit 11d6c85

Please sign in to comment.