diff --git a/cps/services/SyncToken.py b/cps/services/SyncToken.py index bf31a7bc..29552373 100644 --- a/cps/services/SyncToken.py +++ b/cps/services/SyncToken.py @@ -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.