mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 19:13:40 +02:00
...
This commit is contained in:
parent
6481066d73
commit
e501c52622
2 changed files with 4 additions and 2 deletions
|
|
@ -519,6 +519,8 @@ def initialize_tables(self): # {{{
|
|||
'timestamp', 'pubdate', 'uuid', 'path', 'cover',
|
||||
'last_modified'):
|
||||
metadata = self.field_metadata[col].copy()
|
||||
if col == 'comments':
|
||||
metadata['table'], metadata['column'] = 'comments', 'text'
|
||||
if not metadata['table']:
|
||||
metadata['table'], metadata['column'] = 'books', ('has_cover'
|
||||
if col == 'cover' else col)
|
||||
|
|
|
|||
|
|
@ -220,8 +220,8 @@ class FieldMetadata(dict):
|
|||
'is_custom':False,
|
||||
'is_category':False,
|
||||
'is_csp': False}),
|
||||
('comments', {'table':'comments',
|
||||
'column':'text',
|
||||
('comments', {'table':None,
|
||||
'column':None,
|
||||
'datatype':'text',
|
||||
'is_multiple':{},
|
||||
'kind':'field',
|
||||
|
|
|
|||
Loading…
Reference in a new issue