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

Commit 005e3c4

Browse files
authored
Fix classes added for MW2 and WZ2
1 parent 01980aa commit 005e3c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cod_api/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def login(self, ssoToken: str):
9696

9797
if r.json()['status'] == 'success':
9898
self.__common.loggedIn = True
99-
for sub in [self.Warzone, self.ModernWarfare, self.ColdWar,
99+
for sub in [self.Warzone, self.Warzone2, self.ModernWarfare, self.ModernWarfare2, self.ColdWar,
100100
self.Vanguard, self.Shop, self.Me, self.Misc]:
101101
sub.loggedIn = self.__common.loggedIn
102102
sub.baseSsoToken = self.__common.baseSsoToken
@@ -430,6 +430,7 @@ def matchInfo(self, platform, matchId: int):
430430
return data
431431

432432
# WZ2
433+
433434
class __WZ2(__common):
434435
"""
435436
Warzone 2 class: A class to get players warzone 2 stats, warzone 2 combat history and specific warzone 2 match details
@@ -714,6 +715,7 @@ def matchInfo(self, platform, matchId: int):
714715
return data
715716

716717
# MW2
718+
717719
class __MW2(__common):
718720
"""
719721
ModernWarfare 2 class: A class to get players modernwarfare 2 stats, modernwarfare 2 combat history, a player's modernwarfare 2 season loot, modernwarfare 2 map list and specific modernwarfare 2 match details

0 commit comments

Comments
 (0)