add version to all cmd files

This commit is contained in:
Kovid Goyal 2017-04-30 11:35:16 +05:30
parent da689143c6
commit dc35155bc3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
4 changed files with 4 additions and 1 deletions

View File

@ -18,7 +18,7 @@ from calibre.srv.changes import books_added
from calibre.utils.localization import canonicalize_lang
readonly = False
version = 0 # change this if you change signature of implementation()
def to_stream(data):
ans = BytesIO(data[1])

View File

@ -10,6 +10,7 @@ from io import BytesIO
from calibre.srv.changes import formats_added
readonly = False
version = 0 # change this if you change signature of implementation()
def implementation(db, notify_changes, book_id, data, fmt, replace):

View File

@ -15,6 +15,7 @@ from calibre.ebooks.metadata import authors_to_string
from calibre.utils.date import isoformat
readonly = True
version = 0 # change this if you change signature of implementation()
FIELDS = {
'title', 'authors', 'author_sort', 'publisher', 'rating', 'timestamp', 'size',
'tags', 'comments', 'series', 'series_index', 'formats', 'isbn', 'uuid',

View File

@ -8,6 +8,7 @@ from calibre.db.delete_service import delete_service
from calibre.srv.changes import books_deleted
readonly = False
version = 0 # change this if you change signature of implementation()
def implementation(db, notify_changes, ids, permanent):