11 lines
302 B
Python
11 lines
302 B
Python
|
from fwd.settings import SUBS
|
||
|
|
||
|
def map_subsidiary_long_to_short(long_sub):
|
||
|
short_sub = SUBS.get(long_sub.upper(), "all")
|
||
|
return short_sub.upper()
|
||
|
|
||
|
def map_subsidiary_short_to_long(short_sub):
|
||
|
for k, v in SUBS.items():
|
||
|
if v == short_sub.upper():
|
||
|
return k
|
||
|
return "ALL"
|