Ask coding questions

← Back to all posts
List of Dictionaries is Overwriting Every Dictionary
c4syner (77)

I'm working on a project that uses a Flask server and GET params to send data to and from clients. The foundation of it is working but whenever I make a new call to the server, instead of appending data to the existing list, it overwrites everything in the list and I don't know why... Any help would be appreciated. If you have any questions please ask.

PS: Issue can be reproduced through making multiple calls to the below URL but changing the username. (with the bug) It should return a list of dictionaries but with all of the usernames overwritten to the new username.

PSS: Use this link: to see the file