cubicweb/server/rqlannotation.py
branch3.26
changeset 12432 2fcb53ee5178
parent 11770 22b854d3e8b2
child 12509 db81a99e9dd1
--- a/cubicweb/server/rqlannotation.py	Tue Oct 09 16:24:12 2018 +0200
+++ b/cubicweb/server/rqlannotation.py	Mon Oct 29 10:04:31 2018 +0100
@@ -100,9 +100,9 @@
                         ostinfo = rhs.children[0].variable.stinfo
                     else:
                         ostinfo = lhs.variable.stinfo
-                    if not (ostinfo.get('optcomparisons') or
-                            any(orel for orel in ostinfo['relations']
-                                if orel.optional and orel is not rel)):
+                    if not (ostinfo.get('optcomparisons')
+                            or any(orel for orel in ostinfo['relations']
+                                   if orel.optional and orel is not rel)):
                         break
             if rschema.final or (onlhs and rschema.inlined):
                 if rschema.type != 'has_text':