datacipen commited on
Commit
b0d17c8
·
verified ·
1 Parent(s): 49da3d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -1074,9 +1074,7 @@ def update_emploi(selectedData, array_value, theme):
1074
  options = []
1075
  if selectedData != None:
1076
  customRepartition = selectedData['points'][0]['hovertext']
1077
- if customRepartition.find(',') == -1:
1078
- customRepartition = customRepartition
1079
- else:
1080
  customRepartition = " "
1081
  if type(selectedData['points'][0]['hovertext']) == str:
1082
  options.append(selectedData['points'][0]['hovertext'])
 
1074
  options = []
1075
  if selectedData != None:
1076
  customRepartition = selectedData['points'][0]['hovertext']
1077
+ if isinstance(customRepartition, list):
 
 
1078
  customRepartition = " "
1079
  if type(selectedData['points'][0]['hovertext']) == str:
1080
  options.append(selectedData['points'][0]['hovertext'])