Skip to content

Commit

Permalink
Automatic backup 2024-03-10
Browse files Browse the repository at this point in the history
  • Loading branch information
snejus committed Mar 11, 2024
1 parent 5dc1c86 commit 64a878d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions rich_tables/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ def counts_table(data: List[JSONDict]) -> Table:
keywords=format_with_color_on_black,
ingr=lambda x: simple_panel(format_with_color(x)),
# content=lambda x: md_panel(x) if isinstance(x, str) else x,
# comments=lambda x: md_panel(
# x.replace("\n0", "\n* 0").replace("\n[", "\n* ["), title="comments"
# ),
comments=lambda x: md_panel(
x.replace("\n0", "\n* 0").replace("\n[", "\n* ["), title="comments"
),
released=lambda x: x.replace("-00", "") if isinstance(x, str) else str(x),
duration=lambda x: duration2human(x) if isinstance(x, (int, float)) else x,
total_duration=lambda x: duration2human(x),
Expand Down
10 changes: 5 additions & 5 deletions rich_tables/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,11 @@ def make(cls, reviews: List[JSONDict], **kwargs: Any) -> "PullRequestTable":
comments=comments_by_review_id.get(r["id"], []),
)
for r in reviews
if (
r["id"] in threads_by_review_id
or r["state"] != "COMMENTED"
or r["body"]
)
# if (
# # r["id"] in threads_by_review_id
# r["state"] != "COMMENTED"
# or r["body"]
# )
]
return cls(**kwargs)

Expand Down

0 comments on commit 64a878d

Please sign in to comment.