Skip to content

Commit 776a86c

Browse files
employment civil services
1 parent c345ae5 commit 776a86c

File tree

4 files changed

+34
-4
lines changed

4 files changed

+34
-4
lines changed

hurumap_ng/fixtures/hurumap_ng.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

hurumap_ng/profiles.py

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ def get_others_profile(geo, session):
519519
mineral_production = LOCATIONNOTFOUND
520520
telecom_subscription = LOCATIONNOTFOUND
521521
jamb = LOCATIONNOTFOUND
522+
employment_in_civil_services = LOCATIONNOTFOUND
522523

523524
with dataset_context(year='2018'):
524525
try:
@@ -669,6 +670,22 @@ def get_others_profile(geo, session):
669670
print(str(e))
670671
pass
671672

673+
try:
674+
jamb, _ = get_stat_data(fields=['year', 'gender'], geo=geo,
675+
session=session,
676+
table_name='jamb', percent=False)
677+
except Exception as e:
678+
print(str(e))
679+
pass
680+
681+
try:
682+
employment_in_civil_services, _ = get_stat_data(fields=['level', 'gender'], geo=geo,
683+
session=session,
684+
table_name='employment_in_civil_services', percent=False)
685+
except Exception as e:
686+
print(str(e))
687+
pass
688+
672689
diesel_price = {
673690
'is_missing': diesel_price_2019.get('is_missing') and \
674691
diesel_price_2018.get('is_missing') and \
@@ -698,7 +715,8 @@ def get_others_profile(geo, session):
698715
air_transportation_domestic.get('is_missing') and \
699716
air_transportation_international.get('is_missing') and \
700717
diesel_year.get('is_missing') and \
701-
driver_licences_processed.get('is_missing')
718+
driver_licences_processed.get('is_missing') and \
719+
employment_in_civil_services.get('is_missing')
702720

703721
final_data = {
704722
'is_missing': is_missing,
@@ -711,7 +729,8 @@ def get_others_profile(geo, session):
711729
'mobile_subscription': mobile_subscription,
712730
'mineral_production': mineral_production,
713731
'telecom_subscription': telecom_subscription,
714-
'jamb': jamb
732+
'jamb': jamb,
733+
'employment_in_civil_services': employment_in_civil_services
715734
}
716735
return final_data
717736

hurumap_ng/sql/employment_in_civil_services.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ CREATE TABLE public.employment_in_civil_services (
2929
geo_version character varying(128) NOT NULL,
3030
level character varying(10) NOT NULL,
3131
gender character varying(10) NOT NULL,
32-
total numeric
32+
total integer
3333
);
3434

3535

hurumap_ng/templates/profile/profile_detail.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,17 @@ <h3 class="chart-header">Corruption Index</h3>
520520
<article id="others" class="clearfix">
521521
<header class="section-contents"><h1>Others</h1></header>
522522
<div class="section-container">
523+
{% if not others.employment_in_civil_services.is_missing %}
524+
<section class="clearfix stat-row">
525+
<div class="column-full">
526+
<div id="chart-grouped_column-others-employment_in_civil_services"
527+
data-chart-title="Employment in State Civil Service by level and sex in 2015"
528+
data-stat-type="number"
529+
data-source-title="National Bureau of Statistics, 2018"
530+
data-source-link="https://nigerianstat.gov.ng/download/952"></div>
531+
</div>
532+
</section>
533+
{% endif %}
523534
{% if not others.mineral_production.is_missing %}
524535
<section class="clearfix stat-row">
525536
<div class="column-full">

0 commit comments

Comments
 (0)