Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MeetWq committed Mar 18, 2023
1 parent 5ba50da commit 1a80620
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/update_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ def arg_info(name: str, info: Dict[str, Any]) -> str:

if args := meme.params_type.args_type:
model = args.model
properties: Dict[str, Dict[str, Any]] = model.schema().get("properties", {})
properties: Dict[str, Dict[str, Any]] = (
model.schema().get("properties", {}).copy()
)
properties.pop("user_infos")
args_info = "\n" + "\n".join(
[arg_info(name, info) for name, info in properties.items()]
Expand Down
4 changes: 2 additions & 2 deletions meme_generator/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ def _(key: str):
if meme.params_type.args_type
else MemeArgsModel
)
properties: Dict[str, Dict[str, Any]] = args_model.schema().get(
"properties", {}
properties: Dict[str, Dict[str, Any]] = (
args_model.schema().get("properties", {}).copy()
)
properties.pop("user_infos")
return MemeInfoResponse(
Expand Down

0 comments on commit 1a80620

Please sign in to comment.