Ignore:
Timestamp:
14 Jul 2024, 22:09:18 (2 months ago)
Author:
Henrik Bettermann
Message:

Two lga keys are wrong.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/export.py

    r17835 r17849  
    222222
    223223    def mangle_value(self, value, name, context=None):
    224         if name == 'lg_state' and context.lga:
    225             value = context.lga.split('_')[0]
    226         if name == 'lg_area' and context.lga:
    227             value = '-'.join(context.lga.split('_')[1:])
     224        if name in ('lg_state', 'lg_area') and context.lga:
     225            value = context.lga
     226            if value.startswith('cross_river') or value.startswith('akwa_ibom'):
     227                value = context.lga.replace('_', '-', 1)
     228            if name == 'lg_state':
     229                value = value.split('_')[0]
     230            if name == 'lg_area':
     231                value = '-'.join(value.split('_')[1:])
    228232        return super(
    229233            NYSCExporter, self).mangle_value(
Note: See TracChangeset for help on using the changeset viewer.