mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 12:36:11 +02:00
Fix so non-anthology numeric custom columns populate correctly.
This commit is contained in:
parent
c9a1537190
commit
5ce064bf92
1 changed files with 1 additions and 1 deletions
|
|
@ -1395,7 +1395,7 @@ class FanFictionDownLoaderPlugin(InterfaceAction):
|
|||
|
||||
if flag == 'r' or book['added']: # flag 'n' isn't actually needed--*always* set if configured and new book.
|
||||
if coldef['datatype'] in ('int','float'): # for favs, etc--site specific metadata.
|
||||
if meta in book['anthology_meta_list']:
|
||||
if 'anthology_meta_list' in book and meta in book['anthology_meta_list']:
|
||||
# re-split list, strip commas, convert to floats, sum up.
|
||||
val = sum([ float(x.replace(",","")) for x in book['all_metadata'][meta].split(", ") ])
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue