Tao: clear permanent menu before each parse

This commit is contained in:
2023-08-27 17:49:46 +02:00
parent a270bf12ff
commit a37ef637ce
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -24,6 +24,7 @@ func NewTaoRestaurant(url string, name string, id int) *TaoRestaurant {
func (restaurant *TaoRestaurant) Parse() {
restaurant.clearMenus()
restaurant.clearPermanentMenus()
resp, err := http.Get(restaurant.url)
if err != nil {
return