mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 01:03:26 +02: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
2 changed files with 2 additions and 2 deletions
|
|
@ -1634,7 +1634,7 @@ def delete_custom_column(self, label=None, num=None):
|
|||
|
||||
@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…
Reference in a new issue