Posts by Jair Perrut • 231 points
4 posts
-
0
votes1
answer59
viewsA: Why is this object array not being ordered? (JS | Bot for Discord)
The ordering is correct and working, the "problem" is that with the ordering criteria you have implemented you make it order in an increasing way, but you want a decreasing ordering and for that…
javascriptanswered Jair Perrut 231 -
1
votes3
answers858
viewsA: How to make a Union of two queries using Django Filter
qs1 = Table1.objects.values("user_id", "created_at") qs2 = Table2.objects.values("user_id", "created_at") qs1.union(qs2).order_by("created_at")…
-
2
votes1
answer291
viewsA: Inheritance in flask models
You have to use the resource Polymorphic sqlalchemy I adapted your code into a single "file" to exemplify the operation, just copy, change the connection settings to the database and run. from…
-
2
votes2
answers832
viewsA: Focus on the next input when reaching the maximum number of characters
I take the parent element and search the input elements. I search for the position of the current element and assign the element of the next index to a variable and then use it to focus. I used the…