Cosmetic changes
This commit is contained in:
@ -240,7 +240,7 @@ class BaseCollection:
|
||||
return (template[:template_insert_pos] +
|
||||
vtimezones + components +
|
||||
template[template_insert_pos:])
|
||||
elif self.get_meta("tag") == "VADDRESSBOOK":
|
||||
if self.get_meta("tag") == "VADDRESSBOOK":
|
||||
return "".join((item.serialize() for item in self.get_all()))
|
||||
return ""
|
||||
|
||||
|
@ -53,7 +53,8 @@ class CollectionCacheMixin:
|
||||
if modified:
|
||||
self._storage._sync_directory(folder)
|
||||
|
||||
def _item_cache_hash(self, raw_text):
|
||||
@staticmethod
|
||||
def _item_cache_hash(raw_text):
|
||||
_hash = sha256()
|
||||
_hash.update(storage.CACHE_VERSION)
|
||||
_hash.update(raw_text)
|
||||
|
Reference in New Issue
Block a user