From 48835c0d83008e288a950779e152d8e198686cf7 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Fri, 12 Jan 2018 14:47:50 +0100 Subject: [PATCH] Make "flatisfy" key optional in deep_duplicate computation --- flatisfy/filters/duplicates.py | 1 + 1 file changed, 1 insertion(+) diff --git a/flatisfy/filters/duplicates.py b/flatisfy/filters/duplicates.py index 8a32022..c9539d8 100644 --- a/flatisfy/filters/duplicates.py +++ b/flatisfy/filters/duplicates.py @@ -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) ):