From 529838a1fefe79cbcfe87cdee6c50a64a35ad7db Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <henrik@trineo.org>
Date: Fri, 16 Jul 2021 09:05:30 +0200
Subject: [PATCH] FIX: put path in query in quotes

---
 src/caosadvancedtools/crawler.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/caosadvancedtools/crawler.py b/src/caosadvancedtools/crawler.py
index 05471e94..33a732e8 100644
--- a/src/caosadvancedtools/crawler.py
+++ b/src/caosadvancedtools/crawler.py
@@ -700,8 +700,8 @@ class FileCrawler(Crawler):
 
     @staticmethod
     def query_files(path):
-        query_str = "FIND FILE WHICH IS STORED AT " + (
-            path if path.endswith("/") else path + "/") + "**"
+        query_str = "FIND FILE WHICH IS STORED AT '" + (
+            path if path.endswith("/") else path + "/") + "**'"
         q_info = "Sending the following query: '" + query_str + "'\n"
         files = db.execute_query(query_str)
         logger.info(
-- 
GitLab