Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

(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. #87

Open
Kokkorito opened this issue Apr 29, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Kokkorito
Copy link

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

@Snaacky Snaacky added the bug Something isn't working label Apr 29, 2023
@shekhar-chauhan
Copy link

Can you point me to the code where this is being handled ? Would love to take a look and try it on my own.

@itzandroidtab
Copy link
Collaborator

@shekhar-chauhan The character list is generated in: list_characters in character.py

@shekhar-chauhan
Copy link

shekhar-chauhan commented Apr 29, 2023

does the attributes = db.query(ItemAttribute).filter_by(item_id=item.id).all()
work fine ?
in
def get_all_items(character_id):

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants