mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix regression that prevented the rating from being updated in the main library view
This commit is contained in:
parent
510675f9cd
commit
24b8e1ba74
@ -575,6 +575,7 @@ class BooksModel(QAbstractTableModel):
|
||||
if column == 'rating':
|
||||
val = 0 if val < 0 else 5 if val > 5 else val
|
||||
val *= 2
|
||||
self.db.set_rating(id, val)
|
||||
elif column == 'series':
|
||||
pat = re.compile(r'\[(\d+)\]')
|
||||
match = pat.search(val)
|
||||
|
Loading…
x
Reference in New Issue
Block a user