Skip to content

Commit

Permalink
Automatic backup 2024-11-21
Browse files Browse the repository at this point in the history
  • Loading branch information
snejus committed Nov 22, 2024
1 parent d1e18f4 commit a7eb1ec
Show file tree
Hide file tree
Showing 9 changed files with 1,446 additions and 1,317 deletions.
22 changes: 11 additions & 11 deletions rich_tables/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,17 +175,17 @@ def _json_dict(data: JSONDict) -> RenderableType:
if isinstance(value, Generator):
value = border_panel(Group(*value), title=key)

if len(str(content)) < MAX_DICT_LENGTH:
table.add_row(key, value)
elif isinstance(value, (NewTable, Text, dict, Columns)):
cols.append(border_panel(value, title=key))
elif isinstance(value, ConsoleRenderable) and hasattr(value, "title"):
value.title = key
cols.append(value)
elif isinstance(value, ConsoleRenderable) and not isinstance(value, Markdown):
cols.append(value)
else:
table.add_row(key, value)
# if len(str(content)) < MAX_DICT_LENGTH:
# table.add_row(key, value)
if isinstance(value, (NewTable, Text, dict, Columns)):
value = border_panel(value, title=key)
# elif isinstance(value, ConsoleRenderable) and hasattr(value, "title"):
# value.title = key
# cols.append(value)
# elif isinstance(value, ConsoleRenderable) and not isinstance(value, Markdown):
# cols.append(value)
# else:
table.add_row(key, value)

if table.rows:
cols.insert(0, table)
Expand Down
342 changes: 171 additions & 171 deletions svgs/albums.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
122 changes: 62 additions & 60 deletions svgs/diff.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
185 changes: 105 additions & 80 deletions svgs/emails.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
206 changes: 113 additions & 93 deletions svgs/jira_diff.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
460 changes: 252 additions & 208 deletions svgs/nested_json.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
884 changes: 446 additions & 438 deletions svgs/pr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
398 changes: 213 additions & 185 deletions svgs/simple_json.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
144 changes: 73 additions & 71 deletions svgs/sql.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a7eb1ec

Please sign in to comment.