Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
fccoelho committed Jan 2, 2013
1 parent 99adc3d commit 764fdde
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
5 changes: 3 additions & 2 deletions epigrass/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
import logging
import re
import json
import cgi
from os import environ
from google.appengine.ext import ndb

# related third party imports
import webapp2
Expand Down Expand Up @@ -1033,6 +1032,8 @@ def get(self):
"""
q = models.Simulation.query().order(models.Simulation.name,-models.Simulation.date_uploaded)
sims = q.fetch()
# q2 = ndb.gql("select name, description, owner, date_uploades from Simulation")
# sims = q2.fetch()
params = {
'sims': sims,
}
Expand Down
6 changes: 3 additions & 3 deletions epigrass/templates/sim_spread.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
In this Sankey diagram, nodes on the right sent infectious cases to nodes on the left. Hover your with the mouse to see more details.
{% endtrans %}
</p>
<div id="spread" style="width:100%;"></div>
<div id="spread" style="height:100%;width: 100%"></div>
<style>

{# @import url(../style.css?20120521);#}
Expand Down Expand Up @@ -64,8 +64,8 @@
<script>

var margin = {top: 1, right: 1, bottom: 6, left: 1},
width = 960 - margin.left - margin.right,
height = 3000 - margin.top - margin.bottom;
width = 1024 - margin.left - margin.right,
height = 1500 - margin.top - margin.bottom;

var formatNumber = d3.format(",.0f"),
format = function(d) { return formatNumber(d); },
Expand Down
7 changes: 7 additions & 0 deletions index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ indexes:
- name: date_uploaded
direction: desc

- kind: Simulation
properties:
- name: name
- name: description
- name: date_uploaded
direction: desc

- kind: User
properties:
- name: __key__
Expand Down

0 comments on commit 764fdde

Please sign in to comment.