breaking config change: category

Category save_path must be exact match and not keyword
This commit is contained in:
bobokun 2022-01-06 13:18:56 -05:00
parent 1fb198f613
commit 14390b3450
No known key found for this signature in database
GPG key ID: 9665BA6CF5DC2671

View file

@ -293,9 +293,10 @@ 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 in path:
if save_path == path:
category = cat
break
if not category:
default_cat = path.split('/')[-2]
category = str(default_cat)