From 943263f9d1b1765de650f34eea31272ff385dac8 Mon Sep 17 00:00:00 2001 From: Jon Date: Sat, 25 Sep 2021 08:23:23 -0400 Subject: [PATCH] fixed bug with reccursive loop --- .gitignore | 1 + qbit_manage.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ee6b193..9b1ac70 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.log *.yml +.vscode/settings.json diff --git a/qbit_manage.py b/qbit_manage.py index ae33fa8..a0b4c32 100644 --- a/qbit_manage.py +++ b/qbit_manage.py @@ -153,7 +153,7 @@ def get_tags(urls): if i in url: tag = f if tag: return tag,trunc_val(url, '/') - tag = '' + tag = ('','') logger.warning('No tags matched. Check your config.yml file. Setting tag to NULL') return tag @@ -568,7 +568,7 @@ def nohardlink(file): else: for path, subdirs, files in os.walk(file): for x in files: - if (os.stat(os.path.join(file,x)).st_nlink > 1): + if (os.stat(os.path.join(path,x)).st_nlink > 1): check = False return check