mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-31 07:13:02 +00:00 
			
		
		
		
	Fix shown cover in series grid view (#979)
This commit is contained in:
		| @@ -27,7 +27,7 @@ | |||||||
|                   <div class="cover"> |                   <div class="cover"> | ||||||
|                       <a href="{{url_for('web.books_list', data=data, sort_param='stored', book_id=entry[0].series[0].id )}}"> |                       <a href="{{url_for('web.books_list', data=data, sort_param='stored', book_id=entry[0].series[0].id )}}"> | ||||||
|                           <span class="img" title="{{entry[0].series[0].name}}"> |                           <span class="img" title="{{entry[0].series[0].name}}"> | ||||||
|                               <img src="{{ url_for('web.get_cover', book_id=entry[0].id) }}" alt="{{ entry[0].name }}"/> |                               <img src="{{ url_for('web.get_cover', book_id=entry[3]) }}" alt="{{ entry[0].series[0].name }}"/> | ||||||
|                               <span class="badge">{{entry.count}}</span> |                               <span class="badge">{{entry.count}}</span> | ||||||
|                             </span> |                             </span> | ||||||
|                       </a> |                       </a> | ||||||
|   | |||||||
| @@ -931,7 +931,8 @@ def series_list(): | |||||||
|             return render_title_template('list.html', entries=entries, folder='web.books_list', charlist=charlist, |             return render_title_template('list.html', entries=entries, folder='web.books_list', charlist=charlist, | ||||||
|                                          title=_(u"Series"), page="serieslist", data="series", order=order_no) |                                          title=_(u"Series"), page="serieslist", data="series", order=order_no) | ||||||
|         else: |         else: | ||||||
|             entries = calibre_db.session.query(db.Books, func.count('books_series_link').label('count')) \ |             entries = calibre_db.session.query(db.Books, func.count('books_series_link').label('count'), | ||||||
|  |                                                func.max(db.Books.series_index), db.Books.id) \ | ||||||
|                 .join(db.books_series_link).join(db.Series).filter(calibre_db.common_filters())\ |                 .join(db.books_series_link).join(db.Series).filter(calibre_db.common_filters())\ | ||||||
|                 .group_by(text('books_series_link.series')).order_by(order).all() |                 .group_by(text('books_series_link.series')).order_by(order).all() | ||||||
|             charlist = calibre_db.session.query(func.upper(func.substr(db.Series.sort, 1, 1)).label('char')) \ |             charlist = calibre_db.session.query(func.upper(func.substr(db.Series.sort, 1, 1)).label('char')) \ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Ozzieisaacs
					Ozzieisaacs