mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Actually only filter out PRODID key
It might happen that we filter out a SUMMARY line or similar which coincidentally contains "PRODID"
This commit is contained in:
parent
f9cd26e644
commit
5d727c26e5
1 changed files with 2 additions and 2 deletions
|
|
@ -22,8 +22,8 @@ def hash_item(text):
|
|||
|
||||
hashable = u'\r\n'.join(line.strip() for line in lines
|
||||
if line.strip() and
|
||||
u'PRODID' not in line and
|
||||
u'VERSION' not in line)
|
||||
not line.startswith(u'PRODID:') and
|
||||
not line.startswith(u'VERSION:'))
|
||||
return hashlib.sha256(hashable.encode('utf-8')).hexdigest()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue