comment out pdf
This commit is contained in:
6
app.py
6
app.py
@@ -2,7 +2,7 @@ import requests, os, pytz
|
||||
import plotly.graph_objects as go
|
||||
import plotly.express as px
|
||||
from flask import Flask, render_template, jsonify, make_response
|
||||
from weasyprint import HTML
|
||||
#from weasyprint import HTML
|
||||
import pandas as pd
|
||||
from datetime import datetime as dt
|
||||
from datetime import timedelta as td
|
||||
@@ -62,7 +62,7 @@ def get_data():
|
||||
response = requests.get('https://api.example.com/data')
|
||||
return response.json()
|
||||
|
||||
@app.route('/download-pdf')
|
||||
""" @app.route('/download-pdf')
|
||||
def download_pdf():
|
||||
# Create Plotly graph
|
||||
#fig = go.Figure(data=[go.Scatter(x=[1, 2, 3], y=[10, 20, 30], mode='lines')])
|
||||
@@ -81,7 +81,7 @@ def download_pdf():
|
||||
response = make_response(pdf)
|
||||
response.headers['Content-Type'] = 'application/pdf'
|
||||
response.headers['Content-Disposition'] = 'inline; filename=report.pdf'
|
||||
return response
|
||||
return response """
|
||||
|
||||
def getDataFrame(telemetry, ignore_keys, time):
|
||||
df = pd.DataFrame()
|
||||
|
||||
Reference in New Issue
Block a user