mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
Cosmetic changes
This commit is contained in:
parent
e07df9fd1d
commit
866aa34f54
7 changed files with 19 additions and 23 deletions
|
@ -81,7 +81,7 @@ class BaseCollection:
|
|||
"""Encoded as quoted-string (see RFC 2616)."""
|
||||
etag = sha256()
|
||||
for item in self.get_all():
|
||||
etag.update((item.href + "/" + item.etag).encode("utf-8"))
|
||||
etag.update((item.href + "/" + item.etag).encode())
|
||||
etag.update(json.dumps(self.get_meta(), sort_keys=True).encode())
|
||||
return '"%s"' % etag.hexdigest()
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ class CollectionSyncMixin:
|
|||
((href, None) for href in self._get_deleted_history_hrefs())):
|
||||
history_etag = self._update_history_etag(href, item)
|
||||
state[href] = history_etag
|
||||
token_name_hash.update((href + "/" + history_etag).encode("utf-8"))
|
||||
token_name_hash.update((href + "/" + history_etag).encode())
|
||||
token_name = token_name_hash.hexdigest()
|
||||
token = "http://radicale.org/ns/sync/%s" % token_name
|
||||
if token_name == old_token_name:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue