Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UI path_to_dict with the cache files #340

Merged
merged 1 commit into from
Nov 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix UI path_to_dict with the cache files
  • Loading branch information
TheophileDiot committed Nov 7, 2022
commit 375776e7def5af4367088e61f19c09bf1a814583
4 changes: 2 additions & 2 deletions ui/utils.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)}

Expand Down