diff options
author | wfjsw <wfjsw@users.noreply.github.com> | 2023-07-18 19:00:16 +0800 |
---|---|---|
committer | wfjsw <wfjsw@users.noreply.github.com> | 2023-07-18 19:00:16 +0800 |
commit | 3c570421d3a2eb24528b5f5bb615dcb0c7717e4a (patch) | |
tree | 26f106cf778779d297f3978002d0434d3dd4d00f /modules | |
parent | 420cc8f68e6aca8a3a0f42ee0e626a6b03712763 (diff) |
move start timer
Diffstat (limited to 'modules')
-rw-r--r-- | modules/api/models.py | 2 | ||||
-rw-r--r-- | modules/launch_utils.py | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/modules/api/models.py b/modules/api/models.py index b55fa728..96cfe920 100644 --- a/modules/api/models.py +++ b/modules/api/models.py @@ -213,7 +213,7 @@ for key, metadata in opts.data_labels.items(): value = None optType = opts.typemap.get(type(metadata.default), type(value)) - if optType == types.NoneType: + if isinstance(optType, types.NoneType): pass elif metadata is not None: fields.update({key: (Optional[optType], Field(default=metadata.default, description=metadata.label))}) diff --git a/modules/launch_utils.py b/modules/launch_utils.py index 03552bc2..ea995eda 100644 --- a/modules/launch_utils.py +++ b/modules/launch_utils.py @@ -10,9 +10,6 @@ from functools import lru_cache from modules import cmd_args, errors
from modules.paths_internal import script_path, extensions_dir
-from modules import timer
-
-timer.startup_timer.record("start")
args, _ = cmd_args.parser.parse_known_args()
|