Cosmetic changes

This commit is contained in:
Unrud
2020-01-21 19:40:02 +01:00
parent fc180266d5
commit db7587c593
7 changed files with 35 additions and 38 deletions

View File

@ -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 ""

View File

@ -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)