Bug fix: Incorrect category when missing trailing slash

This commit is contained in:
bobokun 2022-01-07 08:10:15 -05:00
parent 14390b3450
commit 307959cd3c
No known key found for this signature in database
GPG key ID: 9665BA6CF5DC2671

View file

@ -293,7 +293,7 @@ class Config:
if "cat" in self.data and self.data["cat"] is not None:
cat_path = self.data["cat"]
for cat, save_path in cat_path.items():
if save_path == path:
if os.path.join(save_path, '') == path:
category = cat
break