We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5c4573 commit ca3048cCopy full SHA for ca3048c
app.py
@@ -15,14 +15,15 @@
15
def main():
16
cursor.execute("SELECT name, value FROM fruits ORDER BY value DESC LIMIT 5")
17
data = cursor.fetchall()
18
- chart = {"chart":
19
- {"type": "pie",
20
- "title": "Top 5 fruits",
21
- "data": data,
22
- "container": "container"
23
- }
24
+ chart = {
+ "chart": {
+ "type": "pie",
+ "title": "Top 5 fruits",
+ "data": data,
+ "container": "container"
+ }
25
26
return render_template("index.html", title = "Anychart Python template", chartData = json.dumps(chart))
27
-if __name__ == "__main__":
28
- app.run()
+if __name__ == "__main__":
29
+ app.run()
0 commit comments