Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion novem/vis/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __call__(self, content: Any, **kwargs: Any) -> Any:
"""
Set's the layout of the grid

This paramter is expected to be one of the valid layout
This parameter is expected to be one of the valid layout
strings or formats
"""

Expand Down
9 changes: 4 additions & 5 deletions novem/vis/mail_sections.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ def __init__(
self._kwparams.append(ts)

elif p.annotation is bool:
if v:
ts = f"{k.replace('_', ' ')}: true"
self._kwparams.append(ts)
ts = f"{k.replace('_', ' ')}: {'true' if v else 'false'}"
self._kwparams.append(ts)

elif p.annotation is List[str]:
print("Treat as list of str")
Expand Down Expand Up @@ -184,7 +183,7 @@ def get_markdown(self) -> str:

plist = self._params + self._kwparams + self._cparams

# Add section controleld params first
# Add section controlled params first
for p in plist:
if not len(p):
continue
Expand Down Expand Up @@ -413,7 +412,7 @@ def __init__(
username: str,
/,
include_bio: bool = True,
include_pciture: bool = True,
include_picture: bool = True,
override_bio: Optional[str] = None,
**kwargs: str,
) -> None:
Expand Down
4 changes: 3 additions & 1 deletion tests/test_mail_sections.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def verify_put(key, val, request, context):
ref: {plot_shortname}
width: 100%
align: center
include caption: false
include title: false
include link: true
override title: New title
b: [l2 gray-300 purple, r1 red]
Expand Down Expand Up @@ -110,7 +112,7 @@ def test_mail_section_author(requests_mock):
rest = """{{ author
username: demo
include bio: true
include pciture: true
include picture: true
}}

{{ /author }}"""
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.