dndserver
dndserver copied to clipboard
(Minor issue)-Character List is only updated when new characters are created, but not when old character are used. New characters not created on top.
When you create new character it goes on top of the first character you created. Here is an example of how it works right now:
The first class I created is Cleric. Then I create Bard the order looks like this. Bard(Created 2nd) Cleric(Created 1st) (This is all good and correct)
Then I create Ranger and the order looks like this Bard(Created 2nd) Ranger(Created 3rd) <-- Should be in number 1 position Cleric(Created 1st)
Then I create Wizard and it looks like this Bard(Created 2nd) Ranger(Created 3rd) Wizard(Created 4th) <-- Should be in number 1 position Cleric(Created 1st)
Then I log in as Cleric and press character select order does not change: Bard(Created 2nd) Ranger(Created 3rd) Wizard(Created 4th) Cleric(Created 1st)<-- Should be in number 1 position
Can you point me to the code where this is being handled ? Would love to take a look and try it on my own.
@shekhar-chauhan The character list is generated in: list_characters
in character.py
does the attributes = db.query(ItemAttribute).filter_by(item_id=item.id).all()
work fine ?
in
def get_all_items(character_id):