Fixed categories
This commit is contained in:
parent
3172a11d9d
commit
4e57558da6
@ -267,11 +267,11 @@ CREATE OR REPLACE FUNCTION cdb_observatory.OBS_DecodeCategory(category TEXT)
|
|||||||
RETURNS TEXT
|
RETURNS TEXT
|
||||||
AS $$
|
AS $$
|
||||||
categories = {
|
categories = {
|
||||||
'NEP': 'non_eating_places',
|
'NEP': 'non eating places',
|
||||||
'EP': 'eating_places',
|
'EP': 'eating places',
|
||||||
'APP': 'apparel',
|
'APP': 'apparel',
|
||||||
'SB': 'small_business',
|
'SB': 'small business',
|
||||||
'TR': 'total_retail',
|
'TR': 'total retail',
|
||||||
}
|
}
|
||||||
return categories.get(category)
|
return categories.get(category)
|
||||||
$$ LANGUAGE plpythonu;
|
$$ LANGUAGE plpythonu;
|
||||||
|
Loading…
Reference in New Issue
Block a user