mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
calibredb add_custom_column: Fix a harmless error message when adding custom columns caused by the new db backend
This commit is contained in:
parent
2f4177227a
commit
fe0e299fa5
@ -1634,7 +1634,7 @@ class Cache(object):
|
||||
|
||||
@write_api
|
||||
def create_custom_column(self, label, name, datatype, is_multiple, editable=True, display={}):
|
||||
self.backend.create_custom_column(label, name, datatype, is_multiple, editable=editable, display=display)
|
||||
return self.backend.create_custom_column(label, name, datatype, is_multiple, editable=editable, display=display)
|
||||
|
||||
@write_api
|
||||
def set_custom_column_metadata(self, num, name=None, label=None, is_editable=None,
|
||||
|
@ -719,7 +719,7 @@ def command_export(args, dbpath):
|
||||
|
||||
def do_add_custom_column(db, label, name, datatype, is_multiple, display):
|
||||
num = db.create_custom_column(label, name, datatype, is_multiple, display=display)
|
||||
prints('Custom column created with id: %d'%num)
|
||||
prints('Custom column created with id: %s'%num)
|
||||
|
||||
def add_custom_column_option_parser():
|
||||
from calibre.library.custom_columns import CustomColumns
|
||||
|
Loading…
x
Reference in New Issue
Block a user