Skip to content

Commit

Permalink
Merge pull request #211 from BadWolf1023/record_command
Browse files Browse the repository at this point in the history
fix for html2image
  • Loading branch information
camelwater authored Dec 9, 2023
2 parents e3f94f8 + 02011f7 commit 19e4e8a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion api/api_data_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from api import api_common
from html2image import Html2Image

hti = Html2Image(size=(980, 580), custom_flags=['--no-sandbox', '--default-background-color=0', '--hide-scrollbars'])
hti = Html2Image(size=(980, 580), custom_flags=['--no-sandbox', '--default-background-color=00000000', '--hide-scrollbars'])

API_DATA_PATH = "api/"
HTML_DATA_PATH = "html/"
Expand Down
1 change: 0 additions & 1 deletion commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ def lower_args(args: List[str]) -> List[str]:

async def download_table_picture(message, table_sorted_data: Dict, image_url: str, table_image_path: str):
image_download_success = await common.download_image(image_url, table_image_path)
# image_download_success = False
if image_download_success:
Stats.add_lorenzi_picture_count()
else:
Expand Down

0 comments on commit 19e4e8a

Please sign in to comment.