Add retrieve result test and correct lock in sqlalchemy

This commit is contained in:
Guille Gutierrez 2023-08-09 13:52:55 -04:00
parent bb76d05f17
commit deb04cbe2d
3 changed files with 59 additions and 2 deletions

View File

@ -166,6 +166,7 @@ PARKING_GARAGE = 'parking garage'
RELIGIOUS = 'religious' RELIGIOUS = 'religious'
NON_HEATED = 'non-heated' NON_HEATED = 'non-heated'
DATACENTER = 'datacenter' DATACENTER = 'datacenter'
FARM = 'farm'
LIGHTING = 'Lights' LIGHTING = 'Lights'
OCCUPANCY = 'Occupancy' OCCUPANCY = 'Occupancy'

View File

@ -583,7 +583,48 @@ class MontrealFunctionToHubFunction:
'6353': cte.WAREHOUSE, '6353': cte.WAREHOUSE,
'3392': cte.INDUSTRY, '3392': cte.INDUSTRY,
'5114': cte.STRIP_MALL, '5114': cte.STRIP_MALL,
'5131': cte.STRIP_MALL} '5131': cte.STRIP_MALL,
'3641': cte.INDUSTRY,
'2614': cte.INDUSTRY,
'3661': cte.INDUSTRY,
'2081': cte.INDUSTRY,
'3340': cte.INDUSTRY,
'4928': cte.WORKSHOP,
'3712': cte.INDUSTRY,
'3253': cte.INDUSTRY,
'3860': cte.INDUSTRY,
'3892': cte.INDUSTRY,
'2992': cte.INDUSTRY,
'5598': cte.RETAIL_SHOP_WITHOUT_REFRIGERATED_FOOD,
'4825': cte.NON_HEATED,
'2071': cte.INDUSTRY,
'6495': cte.INDUSTRY,
'2914': cte.INDUSTRY,
'3182': cte.INDUSTRY,
'3791': cte.INDUSTRY,
'3992': cte.INDUSTRY,
'3114': cte.INDUSTRY,
'7920': cte.OFFICE_AND_ADMINISTRATION,
'5891': cte.RESTAURANT,
'5835': cte.SMALL_HOTEL,
'6565': cte.HEALTH_CARE,
'3391': cte.INDUSTRY,
'6615': cte.INDUSTRY,
'3883': cte.INDUSTRY,
'2032': cte.INDUSTRY,
'2994': cte.INDUSTRY,
'4871': cte.INDUSTRY,
'5113': cte.WORKSHOP,
'3571': cte.INDUSTRY,
'2342': cte.INDUSTRY,
'3911': cte.INDUSTRY,
'7444': cte.EDUCATION,
'2221': cte.INDUSTRY,
'8192': cte.FARM,
'2439': cte.INDUSTRY,
'3891': cte.INDUSTRY,
'6354': cte.WORKSHOP
}
@property @property
def dictionary(self) -> dict: def dictionary(self) -> dict:

View File

@ -42,7 +42,22 @@ class ConstructionHelper:
'Varennes': '6', 'Varennes': '6',
'Laval': '6', 'Laval': '6',
'Longueuil': '6', 'Longueuil': '6',
'Saint-Leonard': '6' 'Saint-Leonard': '6',
'Mont-Royal': '6',
'Deux-Montagnes': '6',
'Dorval': '6',
'Dollard-Des Ormeaux': '6',
'Notre-Dame-de-Grace': '6',
'Westmount': '6',
'Cote-Saint-Luc': '6',
'Kirkland': '6',
'Beaconsfield': '6',
'Sainte-Catherine': '6',
'Vaudreuil-Dorion': '6',
'Saint-Laurent': '6',
'Pointe-Claire': '6',
'Boucherville': '6',
'Mascouche': '6',
} }
_reference_city_to_israel_climate_zone = { _reference_city_to_israel_climate_zone = {