How to Create a Backend for your Snap! Project Using Replit

I was using "encode URI", not "encode URI component".

ok, how do i fix it

On your Snap!? Use this project. On Replit? Since it doesn't seem to work, maybe remove the Urllib stuff.

gtg for 25 mins or so

i'm back

Ok.

I might be able to figure out why it's tripling the things if I have the current code.

  1. i have a delete function but it does not seem to work
  2. here is the python code

First, try removing the unquote part to try to help with the question mark thing.
Next, try adding print(messages) before the return statement in e(). Add something to it with Snap!. Then get the messages, again with Snap!, and give me what it prints out.
As for delete, what exactly do you want it to do? Delete a given item? Delete the first, or the last, item?

Delete everything

Then just messages = [].

that creates a local var in delete()

Right. Add global messages before the assignment.

Server is refreshed
new code is here

Where?

in the repl
i meant i changed the code
but if you want it:

Ok. I'll add "moew" to the list, then get the list. When I do, tell me what you see printed out.

What do you see now?

ignore the errors.

@warped_wart_wars unless you spot an append one