Skip to content
Snippets Groups Projects
Commit 9e6a7b778192 authored by Samuel Trégouët's avatar Samuel Trégouët
Browse files

never select eid attribute in fulltext_indexable_rql

eid is already selected via 'V is `Etype`'
parent afd8a876c64c
No related branches found
No related tags found
No related merge requests found
......@@ -90,5 +90,7 @@
rql.append('%s %s %s' % (V, attr, var))
selected.append(var)
for rschema, tschema in schema.eschema(etype).attribute_definitions():
if rschema.type == 'eid':
continue
if tschema.type in ('Int', 'Float'):
attr = rschema.type
......@@ -93,9 +95,8 @@
if tschema.type in ('Int', 'Float'):
attr = rschema.type
if eid and attr != 'eid':
var = next(varmaker)
rql.append('%s %s %s' % (V, attr, var))
selected.append(var)
var = next(varmaker)
rql.append('%s %s %s' % (V, attr, var))
selected.append(var)
for attr in ('creation_date', 'modification_date',) + CUSTOM_ATTRIBUTES.get(etype, ()):
var = next(varmaker)
rql.append('%s %s %s' % (V, attr, var))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment