Posts by kennethfreitas • 86 points
3 posts
-
3
votes4
answers819
viewsA: How to make a function to tell when an array is empty?
function checkArray(arr) { return !!arr.length }
-
2
votes1
answer756
viewsA: Doubt in Python request Django GET/POST
To submit a POST type request you need to submit a form. Your form has an "a" link as the "add" button". Instead of using: <a type="button">Adicionar</a> One should place: <button…
-
2
votes1
answer356
viewsA: How to use the Len function in a python template - Flask
Simple, just use the jinja2 filter itself: <h2> No momento a {{ data|length }} online nesse momento.</h2> Or else: <h2> No momento a {{ data|count }} online nesse…