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

FIX: put path in query in quotes

parent 1a2e033b
Branches
Tags
1 merge request!22Release 0.3
Pipeline #10466 passed
...@@ -700,8 +700,8 @@ class FileCrawler(Crawler): ...@@ -700,8 +700,8 @@ class FileCrawler(Crawler):
@staticmethod @staticmethod
def query_files(path): def query_files(path):
query_str = "FIND FILE WHICH IS STORED AT " + ( query_str = "FIND FILE WHICH IS STORED AT '" + (
path if path.endswith("/") else path + "/") + "**" path if path.endswith("/") else path + "/") + "**'"
q_info = "Sending the following query: '" + query_str + "'\n" q_info = "Sending the following query: '" + query_str + "'\n"
files = db.execute_query(query_str) files = db.execute_query(query_str)
logger.info( logger.info(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment