Update app.py
Browse files
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.
|
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 |
|