From cdfe43d8794b73ad4e9671a3f375c8cd7272d062 Mon Sep 17 00:00:00 2001 From: Ryu1845 <77058942+Ryu1845@users.noreply.github.com> Date: Sat, 12 Mar 2022 15:50:49 +0100 Subject: [PATCH 1/2] Add push to auto format --- .github/workflows/format.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index eac0952..b674b43 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -20,6 +20,6 @@ jobs: run: | black . isort **/**.py - git config --global user.name 'Ryu1845' - git config --global user.email 'ryu@tpgjbo.xyz' - git diff --quiet && git diff --staged --quiet || git commit -am 'Formatted using isort and black' + git config --global user.name 'Auto format' + git config --global user.email 'format@github.com' + git diff --quiet && git diff --staged --quiet || git commit -am 'Formatted using isort and black' && git push From 130905a0ae2a26765b8451191519b7fccb229eb6 Mon Sep 17 00:00:00 2001 From: Auto format Date: Sat, 12 Mar 2022 14:51:06 +0000 Subject: [PATCH 2/2] Formatted using isort and black --- twspace_dl/twitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twspace_dl/twitter.py b/twspace_dl/twitter.py index 5e1be61..5b721de 100644 --- a/twspace_dl/twitter.py +++ b/twspace_dl/twitter.py @@ -15,7 +15,7 @@ def guest_token() -> str: response = requests.post( "https://api.twitter.com/1.1/guest/activate.json", headers=headers ).json() - token = response['guest_token'] + token = response["guest_token"] if not token: raise RuntimeError("No guest token found after five retry") return token