Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1aab0d7a4f | |||
| ff80a109e8 |
@@ -54,7 +54,7 @@ func refresh(c *gin.Context) {
|
||||
}
|
||||
|
||||
func main() {
|
||||
restaurants = append(restaurants, r.NewFreshRestaurant("http://www.fresh-menu.cz/", "Fresh", 1))
|
||||
//restaurants = append(restaurants, r.NewFreshRestaurant("http://www.fresh-menu.cz/", "Fresh", 1))
|
||||
restaurants = append(restaurants, r.NewMenickaRestaurant("https://www.menicka.cz/2752-u-drevaka-beergrill.html", "U Dřeváka", 2))
|
||||
restaurants = append(restaurants, r.NewMenickaRestaurant("https://www.menicka.cz/4116-padagali.html", "Padagali", 3))
|
||||
restaurants = append(restaurants, r.NewMenickaRestaurant("https://www.menicka.cz/5448-light-of-india.html", "Light of India", 4))
|
||||
|
||||
@@ -84,6 +84,9 @@ func (restaurant *FreshRestaurant) Parse() {
|
||||
meals[curIndex] = append(meals[curIndex], line[10:])
|
||||
prices[curIndex] = append(prices[curIndex], -1)
|
||||
}
|
||||
if curIndex < 0 {
|
||||
curIndex++
|
||||
}
|
||||
if !pricesSection && line[1] == '.' && len(line) > 2 {
|
||||
meals[curIndex] = append(meals[curIndex], line[3:])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user