Pattr commited on
Commit
57ffc1c
·
verified ·
1 Parent(s): 9e48140

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def get_advice(province,activity,purpose,year,month,date):
43
  _places = _places[_places['หมวดหมู่']==_purpose]
44
  _places = _places[_places['ปิดวัน']!=_day]
45
 
46
- random_idx = random.range(len(_places))
47
 
48
  return random_idx,random_idx,random_idx
49
 
 
43
  _places = _places[_places['หมวดหมู่']==_purpose]
44
  _places = _places[_places['ปิดวัน']!=_day]
45
 
46
+ random_idx = random.randrange(0,len(_places))
47
 
48
  return random_idx,random_idx,random_idx
49