cleanup: fix duplicate app_gps import, remove debug prints from index route
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
from flask import Flask, render_template, make_response, json, jsonify, request, send_file, Response
|
from flask import Flask, render_template, make_response, json, jsonify, request, send_file, Response
|
||||||
from modules import app_gps, app_events, app_car, app_account, app_gps,app_obd, app_sql, app_dash, app_upload, app_video, app_health, app_alerts, app_settings, app_network
|
from modules import app_gps, app_events, app_car, app_account, app_obd, app_sql, app_dash, app_upload, app_video, app_health, app_alerts, app_settings, app_network
|
||||||
import os, time
|
import os, time
|
||||||
from gevent.pywsgi import WSGIServer
|
from gevent.pywsgi import WSGIServer
|
||||||
|
|
||||||
@@ -17,9 +17,7 @@ app_alerts.start_alerting()
|
|||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def index():
|
def index():
|
||||||
print("hello "+ account.name)
|
return render_template('index.html', account=account, car=car)
|
||||||
print("you're car model is:" + car.model)
|
|
||||||
return render_template('index.html', account = account, car = car)
|
|
||||||
|
|
||||||
@app.route('/dtc')
|
@app.route('/dtc')
|
||||||
def dtc():
|
def dtc():
|
||||||
|
|||||||
Reference in New Issue
Block a user