Skip to content

Commit a34ca27

Browse files
authored
Merge pull request #21 from LucasAlvws/fix/get_pdf_base64
fix: removing encode utf8 in get_pdf_base64
2 parents e2858cd + adb6fed commit a34ca27

File tree

3 files changed

+3
-27
lines changed

3 files changed

+3
-27
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717
token: ${{ secrets.GITHUB_TOKEN }}
@@ -25,30 +25,6 @@ jobs:
2525
- name: Print Version
2626
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"
2727

28-
- name: Install Poetry
29-
run: |
30-
curl -sSL https://install.python-poetry.org | python3 -
31-
export PATH="$HOME/.local/bin:$PATH"
32-
33-
- name: Update Poetry version in pyproject.toml
34-
run: |
35-
git config --global user.name "github-actions[bot]"
36-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
37-
poetry version "${{ steps.cz.outputs.version }}"
38-
git add pyproject.toml
39-
git commit -m "Update pyproject.toml to version ${{ steps.cz.outputs.version }}"
40-
git push
41-
42-
- name: Update poetry.lock
43-
run: |
44-
git config --global user.name "github-actions[bot]"
45-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
46-
poetry lock
47-
git add poetry.lock
48-
git commit -m "Update poetry.lock for version ${{ steps.cz.outputs.version }}"
49-
git push
50-
51-
5228
release:
5329
name: Release
5430
needs: version

pydoll/browser/page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ async def get_pdf_base64(self):
174174
str: The PDF data of the page.
175175
"""
176176
response = await self._execute_command(PageCommands.print_to_pdf())
177-
return response['result']['data'].encode('utf-8')
177+
return response['result']['data']
178178

179179
async def print_to_pdf(self, path: str):
180180
"""

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pydoll"
3-
version = "0.2.0"
3+
version = "0.3.1"
44
description = ""
55
authors = ["Thalison Fernandes <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)