Posts by Dalmo Cabral • 123 points
25 posts
-
-1
votes1
answer44
viewsQ: Map markers multiplying when use setInterval
I would like to understand why my map markings are multiplying when I use setInterval to update geolocation. <!DOCTYPE html> <!DOCTYPE html> <html lang="pt-BR"> <head>…
-
0
votes1
answer241
viewsQ: Button mobile device responsive
How could do with this button fit when and for mobile device? When it’s for PC it gets right. This is the code. <div id="carouselExampleControls" class="carousel slide" data-ride="carousel">…
-
2
votes3
answers516
viewsQ: How to compare two JSON objects with the same elements in Python
I have two Apis that bring me the data in JSON. I’m just not able to make the logic to compare the two. API 1: API 2: My logic is to compare the two on the die FlightID and if it’s the same, give me…
-
0
votes3
answers885
viewsQ: Table not getting Responsive bootstrap 4
I’m venturing into the frontend just like the backend. I’m having a hard time making my table responsive. What is the best way to make a user profile,leaving it in cell phone size? <table…
-
1
votes1
answer260
viewsQ: List Python-flask logged-in user post
I’m a beginner in flask and I’m doing an Appweb where the user can register and register and post, is a Virtual Arline system. I built the user with SESSION and can display only his data. In my…
-
2
votes1
answer479
viewsQ: How to format datetime in a Flask application?
How can I make it show only dd/mm/yy and take the hours and seconds in my database or templates? Database: class User(db.Model): __tablename__ = 'users' id = db.Column(db.Integer, primary_key=True)…
-
1
votes1
answer173
viewsQ: sum the database values and display the result in the flask-sqlalchemy template
have ma table with following information: class Registro(db.Model): id = db.Column(db.Integer, primary_key=True) valores = db.Column(db.Float) ------------| valores | ------------| 1.50 |…
-
0
votes1
answer146
viewsQ: Arithmetic calculations (sum) in the Flask-Sqlalchemy database
I have a table in my database that the user places the total flight hours he has done. I wanted to know how to add all the hours of the user who is in the database and show in templates. Backend:…
-
0
votes1
answer66
viewsQ: loop for Jinj2 flask
I have a loop 'for" in the template only I want it to show a certain amount result. {% for form in form %} <tr> <td><img src="../static/img/arrow-gray.png" alt=""> <font…
-
0
votes1
answer193
viewsQ: Page content in a sidebar
I’m venturing into frontend, I’m struggling as I put the contents of a page on a sidebar example: if I click 'profile' the profile content appears on the side if you click 'flight' the contents of…
-
0
votes1
answer231
viewsQ: Compare string PANDAS Data Science
I’m starting in this world of data science and my doubt how I can compare two string in the same column. I have a column [Investigation Type] that has 'Accident' and 'Incident' I wanted to compare…
-
0
votes3
answers583
viewsQ: Machine Learning Python
I started in the course of Machine Learning and in exercise I’m having difficulty because it is returning me a silly error that I can not find the solution. from sklearn.model_selection import…
-
0
votes1
answer1142
viewsQ: How to fix this Json error
I’m collecting data from an Api that retrieves the information in a Json dictionary to play on an appweb so the server gives me this error how can I fix it? Mistake you’re making: Traceback (most…
-
0
votes1
answer915
viewsQ: Save Json dictionary to txt
How can I save a. json dictionary of a requests in txt. I tried to do it this way but it didn’t work. import requests import json url = requests.…
-
1
votes2
answers2194
viewsA: How do I execute a command once every hour in python?
A north for you to use in your code to run every hour. import time while True: print("passou 1 hora executa esse comando") time.sleep(3600) #A cada hora ele executa o print…
-
0
votes1
answer356
viewsQ: How to use the Len function in a python template - Flask
I have an Appweb in python-Flask that would like to show the amount of players online, only I’m a little lost in this part already tried {% Len(date) %} and {% data|length %} and no two methods…
-
0
votes1
answer20
viewsQ: How to use two API in Developer in Appweb Flask
I’m new in the world of programming and I’m wanting to delve into web application I would take a doubt. I made a resquests of a json dictionary of two different api. I want to put this data scraping…
-
0
votes1
answer865
viewsQ: Requests, Beautifulsoup <Tables>
I have a website that wants to extract specific data from a table I want to extract all information that has "PROLONG". My difficulty is that all tables have the same name in the "class"…
-
0
votes1
answer119
viewsQ: Error every time I make a Flask Requests
When I make requests from an Api to show the number of players in my template where "For in range (200)" returns the data and not the error. <table class="cor"> <tr class="fundo">…
-
0
votes2
answers37
viewsQ: Table does not want to be vertical
I wanted to know what I’m doing wrong, because I created a table in the template taking information from an api. Wanted to order themselves vertically and not in the orizontal. <!Doctepy html>…
-
0
votes1
answer137
viewsQ: Vertical table Flask template
I’m a beginner in flask and on the front end I have a table that it returns me information from an API, only instead of it throwing information on the table vertically it’s going horizontal, as I do…
-
0
votes2
answers218
viewsQ: for in range no flask template
I’m in doubt, the API I’m getting returns me two data types "ID" and "Title" are several id and title and I wanted to play this on my table in a "for" template. I wanted to know if what I did was…
-
0
votes1
answer89
viewsQ: Extract data from a website and play in your Flask web application
Which module could I use in flask to get data from an API and play in my web application in the HTML part
-
0
votes1
answer75
viewsQ: Information from an API in your web application - Flask Python
I’m a beginner in python and I’m venturing into flask because I thought learning better than Django. So excuse my ignorance of what I’m going to ask or if my code is wrong, more like I do to take…
-
-1
votes1
answer255
viewsQ: How do I see how much the function returns Python
I made a script that returns the names of online players of a given game only that I wanted to tbm put the quantity. How would this structure for quantity return? I already tried to create a list…