소스 검색

Include properties in collection etag

Unrud 8 년 전
부모
커밋
71916452ec
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      radicale/storage.py

+ 1 - 0
radicale/storage.py

@@ -459,6 +459,7 @@ class BaseCollection:
         etag = md5()
         for item in self.get_all():
             etag.update((item.href + "/" + item.etag).encode("utf-8"))
+        etag.update(json.dumps(self.get_meta(), sort_keys=True).encode())
         return '"%s"' % etag.hexdigest()
 
     @classmethod