From 57af966ebe8e2e5f4edf6b8c39b89f3df715918e Mon Sep 17 00:00:00 2001 From: Walker Waylon Scott Date: Sun, 21 May 2017 11:02:50 -0500 Subject: [PATCH] changed to agg backend for heroku --- app/__pycache__/app.cpython-36.pyc | Bin 1519 -> 4246 bytes app/app.py | 2 ++ app/templates/c3-chart.html | 34 +++++++++++++++++++++++++++++ requirements.txt | 11 ++++++---- 4 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 app/templates/c3-chart.html diff --git a/app/__pycache__/app.cpython-36.pyc b/app/__pycache__/app.cpython-36.pyc index a6bf370fc37458ebd5900d6c80023a8ce20909fd..6914d0261ae4b1e8accc71a7fadd4dde4bd6cce0 100644 GIT binary patch literal 4246 zcmcgvS#KN35uS^~A$3}|EZ?TD)zY>|`L<W-A%GiB219m}obg=lX==?e z^%6QjUIZkM8{`k<59GgOUiV?4pAbEzs)wSuN)|}+kQq#OS5+U?Rn=eh+?kpxxBqtO z?LVdz<$Go9F`)enzQorQg(_6_6_VE~Q6;Sr9cs-tf&wW7CNYB|DFzm?f)XhOWl~o2 z{u5+U_MakCQ0xA5FhgdBvRUsKnFFrj&j!cIamg+CCxUr0FWaVnGFTuB!6|Y|RoJ9= znkn8H?<|}0&e7sP8>r+wJ5R0Cig$sQsQP;iS{GSmpdxowVduR|)S~4!^z<$d6z|GF zAy?T|@0$0;Kw($yYuF}>>`PWNOc%4qr$dehKu&RppgJ zEA-N5giL8CjgI#B6#dgC+dephlp zU%EtVl5U5djYHRfNu14?ByHavrO74wG?$ZZS@<2)+j!7QT6)AZrC68hLRr*A7 z9!bs`aGug}ud~^^H>f`5uPh zX4T9JFMTI@pUrRo#N2d*8--03^@Rrxih_a{@FgdpXe)i?H9#Q@+a+s0ozkk z1GZ8Bs{%@BwdKqVWh_kE!_E1v*U2#CSr+wbYKvB=fp97wYaxmUiCrJ zjDmRWBrb@nn+l(Uij)%8r&Ang{^Mb zcG8Jf6pC8Q30%LohsvZS$w}Ol?M)&*?R><6PJ{W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UItE@K+wW3+{4{dYQS^xk5 diff --git a/app/app.py b/app/app.py index db82b19..855785b 100644 --- a/app/app.py +++ b/app/app.py @@ -6,6 +6,8 @@ from flask import Flask, render_template, g, jsonify, request, redirect import pandas as pd import settings from random import choice +import matplotlib +matplotlib.use('Agg') import matplotlib.pyplot as plt from matplotlib.pyplot import rcParams diff --git a/app/templates/c3-chart.html b/app/templates/c3-chart.html new file mode 100644 index 0000000..24e877a --- /dev/null +++ b/app/templates/c3-chart.html @@ -0,0 +1,34 @@ + + + + + Simple chart with C3 - in 5 minutes! + + + + + + + + + + +
+ + + + diff --git a/requirements.txt b/requirements.txt index 9822564..16bd862 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,17 +1,20 @@ # Requirements automatically generated by pigar. # https://github.com/Damnever/pigar -# app.py: 2 +Python == 3.6.1 + +# app.py: 5 Flask == 0.12 -# app.py: 7 +# app.py: 12 Flask_WTF == 0.14.2 -# app.py: 8 +# app.py: 13 WTForms == 2.1 +# app.py: 9,10 # settings.py: 4 matplotlib == 2.0.2 -# app.py: 3 +# app.py: 6 pandas == 0.20.1