mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
add comment
This commit is contained in:
parent
09f3ad10fb
commit
0f5fdd6d39
1 changed files with 7 additions and 0 deletions
|
|
@ -95,6 +95,13 @@ class Item(object):
|
|||
'''Used for generating hrefs and matching up items during
|
||||
synchronization. This is either the UID or the hash of the item's
|
||||
content.'''
|
||||
|
||||
# We hash the item instead of directly using its raw content, because
|
||||
#
|
||||
# 1. The raw content might be really large, e.g. when its a contact
|
||||
# with a picture, which bloats the status file.
|
||||
#
|
||||
# 2. The status file would contain really sensitive information.
|
||||
return self.uid or self.hash
|
||||
|
||||
@cached_property
|
||||
|
|
|
|||
Loading…
Reference in a new issue