diff --git a/any2eln/labfolder/labfolder.py b/any2eln/labfolder/labfolder.py index 450dba7..1a8d72b 100644 --- a/any2eln/labfolder/labfolder.py +++ b/any2eln/labfolder/labfolder.py @@ -294,11 +294,11 @@ def __get_links_script(self) -> str: INSERT INTO experiments_links (item_id, link_id) SELECT experiments.id, - (SELECT items.id FROM items WHERE title = '{category}' LIMIT 1) + (SELECT items.id FROM items WHERE title = "{category}" LIMIT 1) FROM experiments LEFT JOIN tags2entity ON tags2entity.item_id = experiments.id AND tags2entity.item_type = 'experiments' LEFT JOIN tags ON tags2entity.tag_id = tags.id -WHERE tags.tag = '{category}';""") +WHERE tags.tag = "{category}";""") return '\n'.join(lines)