Skip to content

Commit

Permalink
fix: 모닝, 디너 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HI-JIN2 committed Oct 31, 2023
1 parent 04eadb7 commit 54c3732
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class BreakfastFragment : Fragment() {
// })

//기숙사식당
viewModel.loadTodayMeal(menuDate, Restaurant.DORMITORY, Time.LUNCH)
viewModel.loadTodayMeal(menuDate, Restaurant.DORMITORY, Time.MORNING)
viewModel.todayMealDataDormitory.observe(viewLifecycleOwner, Observer { result ->
//if (result.toString() != "[]") {
val dodamAdapter = TodayMealAdapter(result)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class DinnerFragment : Fragment() {
menuDate =
LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMM")) + dataReceived
//숭실도담
viewModel.loadTodayMeal(menuDate, Restaurant.DODAM, Time.LUNCH)
viewModel.loadTodayMeal(menuDate, Restaurant.DODAM, Time.DINNER)
viewModel.todayMealDataDodam.observe(viewLifecycleOwner, Observer { result ->
//if (result.toString() != "[]") {
val dodamAdapter = TodayMealAdapter(result)
Expand All @@ -104,7 +104,7 @@ class DinnerFragment : Fragment() {
})

//기숙사식당
viewModel.loadTodayMeal(menuDate, Restaurant.DORMITORY, Time.LUNCH)
viewModel.loadTodayMeal(menuDate, Restaurant.DORMITORY, Time.DINNER)
viewModel.todayMealDataDormitory.observe(viewLifecycleOwner, Observer { result ->
//if (result.toString() != "[]") {
val dodamAdapter = TodayMealAdapter(result)
Expand Down

0 comments on commit 54c3732

Please sign in to comment.