Compare commits
No commits in common. "a37ef637ce03e04df4de2f961d668677793eb975" and "a7591c9868dab6e243fb687f2cb50801f645957b" have entirely different histories.
a37ef637ce
...
a7591c9868
@ -55,10 +55,6 @@ func (restaurant *Restaurant) clearMenus() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (restaurant *Restaurant) clearPermanentMenus() {
|
|
||||||
restaurant.permanent = []Meal{}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (restaurant *Restaurant) MarshalJSON() ([]byte, error) {
|
func (restaurant *Restaurant) MarshalJSON() ([]byte, error) {
|
||||||
return json.Marshal(&RestaurantJSON{
|
return json.Marshal(&RestaurantJSON{
|
||||||
Id: restaurant.id,
|
Id: restaurant.id,
|
||||||
@ -70,7 +66,6 @@ func (restaurant *Restaurant) MarshalJSON() ([]byte, error) {
|
|||||||
|
|
||||||
func (restaurant *Restaurant) GetSpecificDayObject(days []int) RestaurantJSON {
|
func (restaurant *Restaurant) GetSpecificDayObject(days []int) RestaurantJSON {
|
||||||
obj := RestaurantJSON{
|
obj := RestaurantJSON{
|
||||||
Id: restaurant.id,
|
|
||||||
Restaurant: restaurant.name,
|
Restaurant: restaurant.name,
|
||||||
PermanentMeals: restaurant.permanent,
|
PermanentMeals: restaurant.permanent,
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,6 @@ func NewTaoRestaurant(url string, name string, id int) *TaoRestaurant {
|
|||||||
|
|
||||||
func (restaurant *TaoRestaurant) Parse() {
|
func (restaurant *TaoRestaurant) Parse() {
|
||||||
restaurant.clearMenus()
|
restaurant.clearMenus()
|
||||||
restaurant.clearPermanentMenus()
|
|
||||||
resp, err := http.Get(restaurant.url)
|
resp, err := http.Get(restaurant.url)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user