From 64a226719fda5acf6b55f93173f61b67b5ea37e1 Mon Sep 17 00:00:00 2001 From: Rachel Blackman Date: Thu, 14 May 2020 03:11:28 -0700 Subject: [PATCH] Add support for ClassJobs in Character profile The client omits the ability to add the 'CJ' option onto a query, which makes it difficult to make a profile image generator in Python if you want it to show class levels. Simple change to add support. --- pyxivapi/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyxivapi/client.py b/pyxivapi/client.py index 740c3b3..9c869ee 100644 --- a/pyxivapi/client.py +++ b/pyxivapi/client.py @@ -48,7 +48,7 @@ async def character_search(self, world, forename, surname, page=1): @timed - async def character_by_id(self, lodestone_id: int, extended=False, include_achievements=False, include_freecompany=False, include_freecompany_members=False, include_pvpteam=False, language="en"): + async def character_by_id(self, lodestone_id: int, extended=False, include_achievements=False, include_classjobs=False, include_freecompany=False, include_freecompany_members=False, include_pvpteam=False, language="en"): """|coro| Request character data from XIVAPI.com Please see XIVAPI documentation for more information about character sync state https://xivapi.com/docs/Character#character @@ -73,6 +73,9 @@ async def character_by_id(self, lodestone_id: int, extended=False, include_achie if include_achievements is True: data.append("AC") + if include_classjobs is True: + data.append("CJ") + if include_freecompany is True: data.append("FC")