calibredb add_custom_column: Fix a harmless error message when adding custom columns caused by the new db backend

This commit is contained in:
Kovid Goyal 2014-02-06 08:02:23 +05:30
parent 2f4177227a
commit fe0e299fa5
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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