diff --git a/src/translators/sql_translator.py b/src/translators/sql_translator.py index 5025ebcf..a5b50794 100644 --- a/src/translators/sql_translator.py +++ b/src/translators/sql_translator.py @@ -539,7 +539,8 @@ def _get_where_clause(self, entity_ids, from_date, to_date, fiware_sp=None, " " + FIWARE_SERVICEPATH + " ~* '($|/.*)'") else: clauses.append( - " " + FIWARE_SERVICEPATH + " ~* '" + fiware_sp + "($|/.*)'") + " " + FIWARE_SERVICEPATH + " ~* '" + + fiware_sp + "($|/.*)'") else: # Match prefix of fiware service path clauses.append(" " + FIWARE_SERVICEPATH + " = ''") @@ -811,8 +812,8 @@ def query(self, try: self.cursor.execute(op) except Exception as e: - #TODO due to this except in case of sql errors, - #all goes fine, and users gets 404 as result + # TODO due to this except in case of sql errors, + # all goes fine, and users gets 404 as result # Reason 1: fiware_service_path column in legacy dbs. logging.error("{}".format(e)) entities = []