Skip to content

Commit

Permalink
Fix character ID lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
tiltowait committed Sep 7, 2022
1 parent 3e1f302 commit 241630a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inconnu/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _gen_roll(guild: int, user: int, message: int, char, outcome, comment: str):
"guild": guild, # We use the guild and user keys for easier lookups
"user": user,
"message": message,
"charid": getattr(char, "object_id", None),
"charid": getattr(char, "pk", None),
"raw": outcome.syntax,
"normal": outcome.normal.dice,
"hunger": outcome.hunger.dice,
Expand Down

0 comments on commit 241630a

Please sign in to comment.