Skip to content

Commit

Permalink
Example codes fixed (#5)
Browse files Browse the repository at this point in the history
* Update README.md

fixed all star points in abyssos example code snippet

* Update README.md

fixed other example code, fight_id is no longer valid and was changed to just id at some point. Log is also archived which causes issue, but don't think that matters for example code since user can input their own.
  • Loading branch information
arieker authored Apr 24, 2024
1 parent f7e8938 commit 8ce25aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ client = FFLogsClient(CLIENT_ID, CLIENT_SECRET)
report = client.get_report('rGARYmQwTKbahXz9')

for fight in report:
print(f'Fight #{fight.fight_id}:', fight.name(), f'- Kill: {fight.is_kill()}')
print(f'Fight #{fight.id}:', fight.name(), f'- Kill: {fight.is_kill()}')
pot_table = fight.table(filters={'sourceAurasPresent': 'Medicated'})
potted_damage = 0
for damage in pot_table['damageDone']:
Expand Down Expand Up @@ -87,9 +87,9 @@ from config import CLIENT_ID, CLIENT_SECRET
from fflogsapi import FFLogsClient, GQLEnum, FightDifficulty

client = FFLogsClient(CLIENT_ID, CLIENT_SECRET)
character = fapi.get_character(id=19181640)
character = client.get_character(id=19181640)

abyssos = fapi.get_zone(id=49)
abyssos = client.get_zone(id=49)
partition_628 = next(filter(
lambda p: '6.28' in p.name,
abyssos.partitions()
Expand Down

0 comments on commit 8ce25aa

Please # to comment.