Skip to content

Commit

Permalink
Update formatting and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
b-j-mills committed Jan 29, 2024
1 parent a8e9caf commit 0047917
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [0.6.9] - 2024-01-30

### Added

- Add population data for all HRP countries

## [0.6.8] - 2024-01-23

### Changed
Expand Down
4 changes: 2 additions & 2 deletions src/hapi/pipelines/app/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Entry point to start data freshness
"""
"""Entry point to start HAPI pipelines"""

import argparse
import logging
from os import getenv, remove
Expand Down
9 changes: 5 additions & 4 deletions src/hapi/pipelines/database/food_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,11 @@ def populate(self):
reference_period_start=reference_period_start,
reference_period_end=reference_period_end,
population_in_phase=population_in_phase,
population_fraction_in_phase=population_in_phase
/ population_total
if population_in_phase
else 0.0,
population_fraction_in_phase=(
population_in_phase / population_total
if population_in_phase
else 0.0
),
# TODO: For v2+, add to scraper (HAPI-199)
source_data="not yet implemented",
)
Expand Down
1 change: 1 addition & 0 deletions src/hapi/pipelines/database/operational_presence.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Functions specific to the operational presence theme."""

from logging import getLogger
from typing import Dict

Expand Down

0 comments on commit 0047917

Please sign in to comment.