Posts by danzin • 58 points
3 posts
-
2
votes0
answers27
viewsQ: Context User does not return username Asp Net Core 3.1 C#
I’m trying to get the username logged in by the User context inside a controller. I’m using Identity to manage login and JWT to authenticate requests in my controller. I can get the values:…
-
0
votes1
answer111
viewsA: How to create an "Event Scheduler" in Mysql whose range value comes from the database itself?
You need to do a subquery to know the new value of the range, the code would look like this: delimiter | CREATE EVENT gera_financeiro_contrato ON SCHEDULE EVERY (select valor from tabela where campo…
-
2
votes1
answer130
viewsQ: List containing only the last element in Python
I’m going through a text file and putting its contents in a list of objects, in which each object contains two "string-like" attributes: word and meaning... The problem is that after I go through…