Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit 92accb0

Browse files
committed
Update, date - Tue 07/19/2022, time - 8:12:13.41
1 parent 5bc2426 commit 92accb0

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

cod_api/__init__.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,9 @@ def __priv(self):
550550

551551
def friendFeed(self, platform, gamertag:str):
552552
p, g = self.__priv()
553-
data = asyncio.run(self._common__sendRequest(f"/userfeed/v1/friendFeed/platform/{p}/gamer/{g}/friendFeedEvents/en"))
553+
data = asyncio.run(
554+
self._common__sendRequest(f"/userfeed/v1/friendFeed/platform/{p}/gamer/{g}/friendFeedEvents/en")
555+
)
554556
return data
555557

556558
def eventFeed(self):
@@ -576,10 +578,10 @@ def settings(self):
576578
data = asyncio.run(self._common__sendRequest(f"/preferences/v1/platform/{p}/gamer/{g}/list"))
577579
return data
578580

579-
580581
# ALT
581582
class __ALT(__common):
582-
def search(self, platform, gamertag:str):
583+
584+
def search(self, platform, gamertag: str):
583585
lookUpType, gamertag = self._common__helper(platform, gamertag)
584586
data = asyncio.run(self._common__sendRequest(f"/crm/cod/v2/platform/{platform.value}/username/{gamertag}/search"))
585587
return data
@@ -606,12 +608,12 @@ def __init__(self, platform: platforms):
606608
if platform == platforms.Steam:
607609
self.message = "Steam cannot be used till further updates."
608610
else:
609-
self.message = f"Invalid platform, use platform class!"
611+
self.message = "Invalid platform, use platform class!"
610612

611613
def __str__(self):
612614
return self.message
613615

614616

615617
class StatusError(Exception):
616618
def __str__(self):
617-
return "Status Error, Check if your sso token is valid or try again later."
619+
return "Status Error, Check if your sso token is valid or try again later."

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
name="cod_api",
77
packages=['cod_api'],
88
install_requires=requirements
9-
)
9+
)

0 commit comments

Comments
 (0)