mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
add version to all cmd files
This commit is contained in:
parent
da689143c6
commit
dc35155bc3
@ -18,7 +18,7 @@ from calibre.srv.changes import books_added
|
|||||||
from calibre.utils.localization import canonicalize_lang
|
from calibre.utils.localization import canonicalize_lang
|
||||||
|
|
||||||
readonly = False
|
readonly = False
|
||||||
|
version = 0 # change this if you change signature of implementation()
|
||||||
|
|
||||||
def to_stream(data):
|
def to_stream(data):
|
||||||
ans = BytesIO(data[1])
|
ans = BytesIO(data[1])
|
||||||
|
@ -10,6 +10,7 @@ from io import BytesIO
|
|||||||
from calibre.srv.changes import formats_added
|
from calibre.srv.changes import formats_added
|
||||||
|
|
||||||
readonly = False
|
readonly = False
|
||||||
|
version = 0 # change this if you change signature of implementation()
|
||||||
|
|
||||||
|
|
||||||
def implementation(db, notify_changes, book_id, data, fmt, replace):
|
def implementation(db, notify_changes, book_id, data, fmt, replace):
|
||||||
|
@ -15,6 +15,7 @@ from calibre.ebooks.metadata import authors_to_string
|
|||||||
from calibre.utils.date import isoformat
|
from calibre.utils.date import isoformat
|
||||||
|
|
||||||
readonly = True
|
readonly = True
|
||||||
|
version = 0 # change this if you change signature of implementation()
|
||||||
FIELDS = {
|
FIELDS = {
|
||||||
'title', 'authors', 'author_sort', 'publisher', 'rating', 'timestamp', 'size',
|
'title', 'authors', 'author_sort', 'publisher', 'rating', 'timestamp', 'size',
|
||||||
'tags', 'comments', 'series', 'series_index', 'formats', 'isbn', 'uuid',
|
'tags', 'comments', 'series', 'series_index', 'formats', 'isbn', 'uuid',
|
||||||
|
@ -8,6 +8,7 @@ from calibre.db.delete_service import delete_service
|
|||||||
from calibre.srv.changes import books_deleted
|
from calibre.srv.changes import books_deleted
|
||||||
|
|
||||||
readonly = False
|
readonly = False
|
||||||
|
version = 0 # change this if you change signature of implementation()
|
||||||
|
|
||||||
|
|
||||||
def implementation(db, notify_changes, ids, permanent):
|
def implementation(db, notify_changes, ids, permanent):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user