diff --git a/pylokid/main.py b/pylokid/main.py index 127e348..31d2583 100644 --- a/pylokid/main.py +++ b/pylokid/main.py @@ -233,7 +233,7 @@ def main(): # Attach scan in Lodur if f_id is available # f_id can be empty when scan was misconfigured - if f_id != None or len(f_id) < 8: + if f_id != None and len(f_id) > 8: lodur_id = webdav_client.get_lodur_data(f_id)["event_id"] # Retrieve Lodur data again and store it in Webdav lodur_data = lodur_client.retrieve_form_data(lodur_id) diff --git a/pyproject.toml b/pyproject.toml index 6b623e1..77d0ce8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pylokid" -version = "3.1.3" +version = "3.1.4" description = "" authors = ["Tobias Brunner "] license = "MIT"