Fixed categories

This commit is contained in:
antoniocarlon 2018-06-14 16:05:20 +02:00
parent 56a83f3eb5
commit 3172a11d9d

View File

@ -267,11 +267,11 @@ CREATE OR REPLACE FUNCTION cdb_observatory.OBS_DecodeCategory(category TEXT)
RETURNS TEXT
AS $$
categories = {
'NEP': 'non eating places',
'EP': 'eating places',
'NEP': 'non_eating_places',
'EP': 'eating_places',
'APP': 'apparel',
'SB': 'small business',
'TR': 'total retail',
'SB': 'small_business',
'TR': 'total_retail',
}
return categories.get(category)
$$ LANGUAGE plpythonu;