Changeset 259:f0498fdc0664
- Timestamp:
- 01/31/10 22:09:50 (6 months ago)
- Author:
- rgrp <http://rufuspollock.org>
- Branch:
- default
- Message:
-
[controllers/stats,bugfix][xs]: default id=None on word method for case of visiting index page (like cset:65f3734fb1d1).
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r253
|
r259
|
|
| 37 | 37 | return render('stats/text.html') |
| 38 | 38 | |
| | 39 | # TODO: implement caching! -- this is massive (every word in shakespeare) |
| 39 | 40 | def word_index(self): |
| 40 | 41 | import sqlalchemy.sql as sql |
| … |
… |
|
| 44 | 45 | return render('stats/word_index.html') |
| 45 | 46 | |
| 46 | | def word(self, id): |
| | 47 | def word(self, id=None): |
| 47 | 48 | if id is None: |
| 48 | 49 | return self.word_index() |