mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Don't rediscover if conflict_resolution changed
This commit is contained in:
parent
f7f271afe2
commit
943c970286
1 changed files with 4 additions and 1 deletions
|
|
@ -114,7 +114,10 @@ def get_status_name(pair, collection):
|
||||||
|
|
||||||
def _get_collections_cache_key(pair_options, config_a, config_b):
|
def _get_collections_cache_key(pair_options, config_a, config_b):
|
||||||
m = hashlib.sha256()
|
m = hashlib.sha256()
|
||||||
j = json.dumps([pair_options, config_a, config_b], sort_keys=True)
|
j = json.dumps([
|
||||||
|
pair_options.get('collections', None),
|
||||||
|
config_a, config_b
|
||||||
|
], sort_keys=True)
|
||||||
m.update(j.encode('utf-8'))
|
m.update(j.encode('utf-8'))
|
||||||
return m.hexdigest()
|
return m.hexdigest()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue