Skip to content

Commit

Permalink
attempt to use the playwright option for table_conversion to maintain…
Browse files Browse the repository at this point in the history
… custom colors
  • Loading branch information
probablyjassin committed Jan 29, 2025
1 parent 65e7ab2 commit ac24d4f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ LABEL org.opencontainers.image.source="https://github.com/probablyjassin/bot-mk8
RUN apt-get update && apt-get install -y \
wget \
gnupg \
chromium \
chromium-driver \
git \
&& rm -rf /var/lib/apt/lists/*

Expand All @@ -17,7 +15,8 @@ WORKDIR /app

COPY requirements.txt /app

RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir -r requirements.txt && \
playwright install chromium

COPY . /app

Expand Down
2 changes: 1 addition & 1 deletion cogs/profiles/leaderboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ async def leaderboard(
).set_caption(f"Leaderboard sorted by {sort} | Page {page_index}"),
buffer,
dpi=200,
table_conversion="matplotlib",
table_conversion="playwright",
)
buffer.seek(0)

Expand Down
2 changes: 1 addition & 1 deletion utils/maths/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def create_table(mogi: Mogi) -> BytesIO:
subset=["Change"],
),
buffer,
table_conversion="matplotlib",
table_conversion="playwright",
)

buffer.seek(0)
Expand Down

0 comments on commit ac24d4f

Please sign in to comment.