Fixed categories

This commit is contained in:
antoniocarlon 2018-06-14 16:29:36 +02:00
parent 3172a11d9d
commit 4e57558da6

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;