Skip to content

Commit

Permalink
quotation consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
ghluka committed Aug 16, 2024
1 parent 714a044 commit 99e7223
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/checkers/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ def _(self, username:str) -> str|None:
if r.status_code == 429:
time.sleep(self.RATELIMIT_TIMEOUT)

return username if r.json()['exists'] == False else None
return username if r.json()["exists"] == False else None
6 changes: 3 additions & 3 deletions src/checkers/instagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class Checker(BaseChecker):

@BaseChecker.check.register
def _(self, username:str) -> str|None:
headers = {'X-CSRFToken': 'en'}
payload = {'email': '', 'username': username, 'first_name': '', 'opt_into_one_tap': False}
headers = {"X-CSRFToken": "en"}
payload = {"email": "", "username": username, "first_name": "", "opt_into_one_tap": False}

r = Response(429)
while r.status_code == 429:
Expand All @@ -23,4 +23,4 @@ def _(self, username:str) -> str|None:
if r.status_code == 429:
time.sleep(self.RATELIMIT_TIMEOUT)

return username if not '"username": [{"message": ' in r.text else None
return username if not "\"username\": [{\"message\": " in r.text else None
4 changes: 2 additions & 2 deletions src/checkers/kahoot.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Checker(BaseChecker):

@BaseChecker.check.register
def _(self, username:str) -> str|None:
headers={'x-kahoot-user-identifier': username}
headers={"x-kahoot-user-identifier": username}

r = Response(429)
while r.status_code == 429:
Expand All @@ -22,4 +22,4 @@ def _(self, username:str) -> str|None:
if r.status_code == 429:
time.sleep(self.RATELIMIT_TIMEOUT)

return username if r.json().get('isUsernameAvailable') else None
return username if r.json().get("isUsernameAvailable") else None
2 changes: 1 addition & 1 deletion src/checkers/speedrun-com.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Checker(BaseChecker):

@BaseChecker.check.register
def _(self, username:str) -> str|None:
payload = {'areaId': '', 'email': 'email@example.com', 'name': username, 'password': 'realpassword123'}
payload = {"areaId": "", "email": "email@example.com", "name": username, "password": "realpassword123"}

r = Response(429)
while r.status_code == 429:
Expand Down
2 changes: 1 addition & 1 deletion src/checkers/twitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Checker(BaseChecker):

@BaseChecker.check.register
def _(self, username:str) -> str|None:
headers={'client-id': 'kimne78kx3ncx6brgo4mv6wki5h1ko'}
headers={"client-id": "kimne78kx3ncx6brgo4mv6wki5h1ko"}
payload = [{"operationName": "UsernameValidator_User", "variables": {"username": username}, "extensions": {"persistedQuery": {"version": 1, "sha256Hash": "fd1085cf8350e309b725cf8ca91cd90cac03909a3edeeedbd0872ac912f3d660"}}}]

r = Response(429)
Expand Down
6 changes: 3 additions & 3 deletions update_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import glob

files = sorted(glob.glob("./src/checkers/*.py", recursive=True))
with open('README.md', 'r', encoding='utf-8') as f:
with open("README.md", "r", encoding="utf-8") as f:
f_text = f.read()
md = f_text.split("<!-- Websites start -->")[0]
md += f"<!-- Websites start -->[{len(files)} total]\n"
Expand All @@ -16,8 +16,8 @@
website = file.split("/")[-1].removesuffix(".py").replace("-", ".").capitalize()
md += f"\n- [{website}]({link})"

md += '\n\n<!-- Websites end -->'
md += "\n\n<!-- Websites end -->"
md += f_text.split("<!-- Websites end -->")[1]

with open('README.md', 'w', encoding='utf-8') as f:
with open("README.md", "w", encoding="utf-8") as f:
f.write(md)

0 comments on commit 99e7223

Please sign in to comment.