renamed GetGenreList to GetGenres as it just gets them, does not make the html list as I was originally planning
This commit is contained in:
2
genre.py
2
genre.py
@@ -39,7 +39,7 @@ def genres():
|
|||||||
return render_template("show_id_name.html", objects=genres, page_title='Show All Genres', url_base='genre')
|
return render_template("show_id_name.html", objects=genres, page_title='Show All Genres', url_base='genre')
|
||||||
|
|
||||||
|
|
||||||
def GetGenreList():
|
def GetGenres():
|
||||||
genres = Genre.query.order_by('name').all()
|
genres = Genre.query.order_by('name').all()
|
||||||
return genres
|
return genres
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user