Make "flatisfy" key optional in deep_duplicate computation

This commit is contained in:
Lucas Verney 2018-01-12 14:47:50 +01:00
parent 46457b014a
commit 48835c0d83
1 changed files with 1 additions and 0 deletions

View File

@ -222,6 +222,7 @@ def deep_detect(flats_list, config):
# They should have the same postal code, if available
if (
"flatisfy" in flat1 and "flatisfy" in flat2 and
flat1["flatisfy"].get("postal_code", None) and
flat2["flatisfy"].get("postal_code", None)
):