Skip to content
Snippets Groups Projects
Commit bb7b6ff1 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

Merge branch 'dev' into tmp

parents d7b1c9a4 4b1e3dae
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@ class Crawler(object):
if current_xml != old:
continue
new_cont.update()
new_cont.update(unique=False)
def collect_cfoods(self):
"""
......@@ -541,18 +541,17 @@ carefully and if the changes are ok, click on the following link:
used for the match.
"""
if entity.name is None:
# TODO multiple parents are ignored! Sufficient?
query_string = "FIND Record " + entity.get_parents()[0].name
query_string += " WITH "
for p in entity.get_properties():
query_string += ("'" + p.name + "'='" + str(get_value(p))
+ "' AND ")
# remove the last AND
query_string = query_string[:-4]
else:
query_string = "FIND '{}'".format(entity.name)
# TODO multiple parents are ignored! Sufficient?
query_string = "FIND Record " + entity.get_parents()[0].name
query_string += " WITH "
if entity.name is not None:
query_string += "name='{}' AND".format(entity.name)
for p in entity.get_properties():
query_string += ("'" + p.name + "'='" + str(get_value(p))
+ "' AND ")
# remove the last AND
query_string = query_string[:-4]
logger.debug(query_string)
q = db.Query(query_string)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment