Skip to content

Instantly share code, notes, and snippets.

@emre
Created June 16, 2017 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emre/f79e2c1c75867a6679563f5a0c865578 to your computer and use it in GitHub Desktop.
Save emre/f79e2c1c75867a6679563f5a0c865578 to your computer and use it in GitHub Desktop.
room category logic.py
category_tuples = [
CategoryTuple(priority=7,
name='Villa',
excluded=['dorm', 'bunk', 'shared', 'dormitory', 'bunkbed',
'bunk bed', 'shared facility'],
included=['villa']),
CategoryTuple(priority=6,
name='Apartment',
excluded=['dorm', 'bunk', 'shared', 'villa', 'dormitory',
'bunkbed', 'bunk bed', 'shared facility'],
included=['apart', 'apartment']),
CategoryTuple(priority=5,
name='Suite',
excluded=['dorm', 'bunk', 'shared',
'apart', 'villa', 'junior', 'dormitory',
'bunkbed', 'bunk bed', 'shared facility'],
included=['suite', 'skyloft', 'penthouse']),
CategoryTuple(priority=4,
name='Junior Suite',
excluded=['dorm', 'bunk', 'shared', 'apart', 'villa',
'dormitory', 'bunkbed', 'bunk bed'
'shared facility'],
included=['suite', 'skyloft', 'penthouse', 'junior']),
CategoryTuple(priority=3,
name='Deluxe',
excluded=['suite', 'apart', 'villa', 'dorm', 'bunk',
'bungalow', 'suite', 'skyloft', 'penthouse',
'shared', 'dormitory', 'bunkbed', 'bunk bed',
'shared facility'],
included=['deluxe', 'executive', 'exclusive', 'luxury',
'premier', 'premiere', 'premium', 'de luxe',
'dlx', 'prestige']),
CategoryTuple(priority=2,
name='Superior',
excluded=['suite', 'apart', 'villa', 'dorm', 'bunk',
'penthouse', 'deluxe', 'executive', 'exclusive',
'luxury', 'premier', 'premiere', 'premium',
'de luxe', 'dlx', 'prestige', 'shared',
'dormitory', 'bunkbed', 'bunk bed',
'shared facility'],
included=['superior']),
CategoryTuple(priority=1,
name='Shared Facility',
excluded=['superior', 'deluxe', 'executive', 'exclusive',
'suite', 'skyloft', 'penthouse', 'junior', 'villa',
'apart', 'apartment', 'luxury', 'premier',
'premiere', 'premium', 'de luxe', 'dlx',
'prestige'],
included=['dorm', 'bunk', 'dormitory', 'bunkbed', 'bunk bed',
'shared', 'shared facility']),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment