Ignore:
Timestamp:
02/06/22 22:56:26 (3 years ago)
Author:
Test <matonikolov77@…>
Branches:
main
Children:
3c0f9a9, ad4243e
Parents:
42d565b
Message:

Resolved bux for fronted and repaired filtering through title and genres for movies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/wediscussmovies/project/web/controller/UsersController.java

    r42d565b r7f36551  
    88import com.wediscussmovies.project.service.MovieService;
    99import com.wediscussmovies.project.service.UserService;
     10import com.wediscussmovies.project.web.DesignFrontMovies;
    1011import org.springframework.stereotype.Controller;
    1112import org.springframework.ui.Model;
     
    6566        List<Movie> movieList = this.movieService.findLikedMoviesByUser(LoggedUser.getLoggedUser());
    6667        List<List<Movie>> movie_rows = new ArrayList<>();
    67         for(int i=0; i<movieList.size(); i+=4){
    68             int j = i+4;
    69             if(j>movieList.size())
    70                 j= movieList.size();
    71             movie_rows.add(movieList.subList(i, j));
    72         }
     68        DesignFrontMovies.designMovieList(movieList,movie_rows);
    7369        model.addAttribute("movie_rows", movie_rows);
    7470        model.addAttribute("contentTemplate","favoriteList");
Note: See TracChangeset for help on using the changeset viewer.