Skip to content

Commit

Permalink
Merge pull request #4 from Packetdancer/master
Browse files Browse the repository at this point in the history
Add support for ClassJobs in Character profile
  • Loading branch information
Yandawl authored May 25, 2020
2 parents f640f85 + 64a2267 commit 97c9f57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyxivapi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")

Expand Down

0 comments on commit 97c9f57

Please sign in to comment.