nastasiasnk commited on
Commit
3c6064e
·
verified ·
1 Parent(s): 3ea2200

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -118,7 +118,7 @@ def test(input_json):
118
 
119
  for domain in UniqueSubdomainsList:
120
  for key, value_list in SubdomainAttributeDict.items():
121
- sqm_per_empl = float(SubdomainAttributeDict[domain]['sqmPerEmpl'])
122
  if key in destinationWeights.columns and key == domain:
123
  if sqm_per_empl > 0:
124
  df_LivabilitySubdomainsWorkplaces['jobs'] += (round(destinationWeights[key] / sqm_per_empl,2)).fillna(0)
 
118
 
119
  for domain in UniqueSubdomainsList:
120
  for key, value_list in SubdomainAttributeDict.items():
121
+ sqm_per_empl = float(SubdomainAttributeDict[domain]['sqmPerEmpl'][0])
122
  if key in destinationWeights.columns and key == domain:
123
  if sqm_per_empl > 0:
124
  df_LivabilitySubdomainsWorkplaces['jobs'] += (round(destinationWeights[key] / sqm_per_empl,2)).fillna(0)