Merge pull request #340 from TheophileDiot/1.5

Fix UI path_to_dict with the cache files
This commit is contained in:
Théophile Diot 2022-11-07 17:13:56 +01:00 committed by GitHub
commit 479b556fb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
from base64 import b64encode
from datetime import datetime
from typing import Union
from typing import List, Union
from bs4 import BeautifulSoup, Tag
import magic
import json
@ -325,7 +325,7 @@ def form_plugin_gen(
def path_to_dict(
path, *, level: int = 0, is_cache: bool = False, db_configs: dict = None
path, *, level: int = 0, is_cache: bool = False, db_configs: List[dict] = []
) -> dict:
d = {"name": os.path.basename(path)}