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 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;