We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a0933b commit 125e3b7Copy full SHA for 125e3b7
1 file changed
pathtraits/db.py
@@ -245,16 +245,17 @@ def get_paths(self, query_str):
245
traits = filter(lambda x: x in query_str, self.traits)
246
query = "SELECT DISTINCT path FROM _path"
247
for trait in traits:
248
+ # pylint: disable=R1713
249
query += f" NATURAL JOIN {trait}"
250
query += f" WHERE {query_str};"
251
252
response = self.execute(query)
253
if response is None:
254
return None
- else:
255
- res = response.fetchall()
256
- res = [x["path"] for x in res]
257
- return res
+
+ res = response.fetchall()
+ res = [x["path"] for x in res]
258
+ return res
259
260
def put_path_id(self, path):
261
"""
0 commit comments