add review from D.

pull/28/head^2
Pierre-Louis Guhur 4 years ago committed by guhur
parent c0b5ef99cb
commit d4ef85c734

@ -154,7 +154,7 @@ def build_most_voted_tables(top=10):
titles = [election["election__title"] for election in votes_qs]
num_votes = [election["count"] for election in votes_qs]
return dcc.Graph(
go.Figure(
figure=go.Figure(
data=[go.Table(
header=dict(values=["Title", "Number of votes"]),
cells=dict(values=[titles, num_votes]),

@ -4,5 +4,4 @@ RUN mkdir /code
WORKDIR /code
COPY requirements.txt /code/
RUN pip install -U pip \
&& pip install -r requirements.txt \
&& pip install dash
&& pip install -r requirements.txt

@ -1,4 +1,3 @@
pip install dash dash_daq dash-bootstrap-components
pushd dashboard
python dash_app.py
popd

@ -6,3 +6,6 @@ django-cors-headers==3.2.1
djangorestframework==3.11.0
nose==1.3.7
psycopg2==2.8.4
dash==1.11.0
dash_daq==0.5.0
dash-bootstrap-components==0.9.2

Loading…
Cancel
Save