mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-24 10:37:23 +00:00
chore: fix some typos in comments
Signed-off-by: growfrow <growfrow@outlook.com>
This commit is contained in:
parent
0925f34557
commit
51d306b11d
@ -33,7 +33,7 @@ def b64encode_json(json_data):
|
||||
return b64encode(json.dumps(json_data).encode())
|
||||
|
||||
|
||||
# Python3 has a timestamp() method we could be calling, however it's not avaiable in python2.
|
||||
# Python3 has a timestamp() method we could be calling, however it's not available in python2.
|
||||
def to_epoch_timestamp(datetime_object):
|
||||
return (datetime_object - datetime(1970, 1, 1)).total_seconds()
|
||||
|
||||
@ -47,7 +47,7 @@ def get_datetime_from_json(json_object, field_name):
|
||||
|
||||
|
||||
class SyncToken:
|
||||
""" The SyncToken is used to persist state accross requests.
|
||||
""" The SyncToken is used to persist state across requests.
|
||||
When serialized over the response headers, the Kobo device will propagate the token onto following
|
||||
requests to the service. As an example use-case, the SyncToken is used to detect books that have been added
|
||||
to the library since the last time the device synced to the server.
|
||||
|
Loading…
Reference in New Issue
Block a user