Posts by eduardo meurer • 53 points
5 posts
-
2
votes1
answer345
viewsQ: Why does the express session return 'Undefined'?
I’m having trouble recovering data from req.session. I have a sub-router that manages the main route and use a middleware to manage the session. I add the data I want to record in the session, but…
-
1
votes0
answers105
viewsQ: Automate express response function (res.send())
I have an express api and would like to develop a function to standardize the customer response. Code (running the function): response(200, "Evento adicionado com sucesso!", res) Scope of function:…
-
1
votes1
answer383
viewsQ: Mongoose is updating wrong object in mongodb
I have a problem saving the data in mongodb. Context I have an express api that listens to requests to save the data to the mongodb an application sends. This data is related to APP page views,…
-
1
votes1
answer61
viewsA: Print the name of a dictionary in Python
In order for you to write on the screen the value of the animal’s name, you must create a key with the name of each one, so just add the same object to that key. There are several ways to do it. I…
python-3.xanswered eduardo meurer 53 -
4
votes4
answers89
viewsQ: Repetition is not equivalent to one second
How much would be the limit value for a repeat to be compared to a second? For example: for x in range(0, 1000): print("1 segundo")