Permalink
Browse files

Custom paint.

  • Loading branch information...
1 parent 576964b commit 9425b6d225e5bd05d10bf1247d55d2a0d457c724 @rcrowley committed Dec 3, 2008
Showing with 36 additions and 11 deletions.
  1. +1 −1 app.yaml
  2. +32 −8 main.py
  3. +3 −2 templates/index.html
View
@@ -1,4 +1,4 @@
-application: munimini
+application: rcrowley-minimuni
version: 1
runtime: python
api_version: 1
View
40 main.py
@@ -103,19 +103,43 @@ class MainPage(webapp.RequestHandler):
def get(self):
config = {
- 'who': 'Paul',
+ 'who': 'Richard',
'stops': [
{
- 'url': 'http://www.nextbus.com/wireless/miniPrediction.shtml?a=sf-muni&r=N&d=N__IB3&s=7318',
- 'distance': 6
+ 'url': 'http://www.nextbus.com/wireless/miniPrediction.shtml?a=sf-muni&r=41&d=41_IB1&s=6767',
+ 'distance': 0
},
{
- 'url': 'http://www.nextbus.com/wireless/miniPrediction.shtml?a=sf-muni&r=J&d=J__IB2&s=4006',
- 'distance': 8
+ 'url': 'http://www.nextbus.com/wireless/miniPrediction.shtml?a=sf-muni&r=41&d=41_OB2&s=6766',
+ 'distance': 0
},
{
- 'url': 'http://www.nextbus.com/wireless/miniPrediction.shtml?a=sf-muni&r=KT&d=KT__IB1&s=5726',
- 'distance': 10
+ 'url': 'http://www.nextbus.com/wireless/miniPrediction.shtml?a=sf-muni&r=45&d=45_IB2&s=6767',
+ 'distance': 0
+ },
+ {
+ 'url': 'http://www.nextbus.com/wireless/miniPrediction.shtml?a=sf-muni&r=45&d=45_OB4&s=6766',
+ 'distance': 0
+ },
+ {
+ 'url': 'http://www.nextbus.com/wireless/miniPrediction.shtml?a=sf-muni&r=19&d=19_OB1&s=6004',
+ 'distance': 0
+ },
+ {
+ 'url': 'http://www.nextbus.com/wireless/miniPrediction.shtml?a=sf-muni&r=47&d=47_OB&s=6832',
+ 'distance': 0
+ },
+ {
+ 'url': 'http://www.nextbus.com/wireless/miniPrediction.shtml?a=sf-muni&r=49&d=49_OB2&s=6832',
+ 'distance': 0
+ },
+ {
+ 'url': 'http://www.nextbus.com/wireless/miniPrediction.shtml?a=sf-muni&r=60&d=60__IB2&s=5089',
+ 'distance': 0
+ },
+ {
+ 'url': 'http://www.nextbus.com/wireless/miniPrediction.shtml?a=sf-muni&r=22&d=22_OB2&s=6754',
+ 'distance': 0
}
]
}
@@ -146,4 +170,4 @@ def main():
run_wsgi_app(application)
if __name__ == "__main__":
- main()
+ main()
View
@@ -1,7 +1,7 @@
{% extends "_layout.html" %}
{% block content %}
- <h1>When should {{who}} leave for work?</h1>
+ <h1>When should {{who}} leave home?</h1>
<ul>
{% for train in trains %}
{% if train.is_past %}
@@ -24,5 +24,6 @@
{% endif %}
{% endfor %}
</ul>
+ <p class="about">Customized for <a href="http://rcrowley.org/">Richard Crowley</p>
<p class="about"><a href="/about/">Uh? What is this? Who is Paul?</a></p>
-{% endblock %}
+{% endblock %}

0 comments on commit 9425b6d

Please sign in to comment.