add/remove series from a book now works, havent thought about removing a parent book fro a series, but otherwise you can add more than one series, remove as well, and it works in the DB
This commit is contained in:
@@ -44,6 +44,13 @@ def CalcAvgRating(sid):
|
||||
print( row )
|
||||
return row.rating
|
||||
|
||||
def ListOfSeriesWithMissingBooks():
|
||||
res=db.engine.execute("select id, title, num_books, count from ( select s.id, s.title, s.num_books, count(bsl.book_id) from series s, book_series_link bsl where s.id = bsl.series_id group by s.id ) as foo where num_books > count")
|
||||
tmp=[]
|
||||
for row in res:
|
||||
tmp.append({'id': row[0], 'title': row[1]})
|
||||
return tmp
|
||||
|
||||
################################################################################
|
||||
# Routes for series data
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user