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

Commit 90da240

Browse files
authored
Fix search endpoint.
1 parent 3bb3954 commit 90da240

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cod_api/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.0.1"
1+
__version__ = "1.0.3"
22

33
# Imports
44
import asyncio
@@ -890,7 +890,7 @@ def battlePassLoot(self, game: games, platform: platforms, season: int):
890890
class __ALT(__common):
891891

892892
def search(self, platform, gamertag: str):
893-
lookUpType, gamertag = self._common__helper(platform, gamertag)
893+
lookUpType, gamertag, platform = self._common__helper(platform, gamertag)
894894
data = asyncio.run(self._common__sendRequest(
895895
f"/crm/cod/v2/platform/{platform.value}/username/{gamertag}/search"))
896896
return data

0 commit comments

Comments
 (0)