clashroyaleclansv2/clashroyaleclans.py
async def clan_cwr(self, clankey, league):
        """Get a clan's CWR"""
        for name, data in self.static_clandata.items():
            if (
                data["tag"] == clankey
                or data["name"] == clankey
                or data["nickname"] == clankey
            ):
                return data["cwr"][league]
        return 0
Get a clan's CWR
Get a clan's CWR
Get a clan ' s CWR
async def clan_cwr(self, clankey, league):
        for name, data in self.static_clandata.items():
            if (
                data["tag"] == clankey
                or data["name"] == clankey
                or data["nickname"] == clankey
            ):
                return data["cwr"][league]
        return 0
async def clan_cwr ( self , clankey , league ) : for name , data in self . static_clandata . items ( ) : if ( data [ "tag" ] == clankey or data [ "name" ] == clankey or data [ "nickname" ] == clankey ) : return data [ "cwr" ] [ league ] return 0
Get a clan's CWR
Get a clan ' s CWR
"""Get a clan's CWR"""
self
clankey
league