commit 22e666233688ceaf0e5cc710ee02773e78c00c30 Author: Sathyanarayanan Gunasekaran gsathya.ceg@gmail.com Date: Fri Aug 24 21:32:22 2012 +0530
Change default value of top
If top value is not specified, then it should show all the relays; not just the top 10 relays. --- app.py | 4 ++-- templates/index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/app.py b/app.py index e7ef634..d84cbdc 100644 --- a/app.py +++ b/app.py @@ -12,7 +12,7 @@ class Opt(object): self.by_country = False self.ases = None self.country = None - self.top = 10 + self.top = -1 self.short = None self.links = None self.guards_only = None @@ -104,7 +104,7 @@ def result(): try: options.top = int(value) except: - options.top = 10 + options.top = -1 elif key == "sort": sort_key = value elif key in ["country", "ases"]: diff --git a/templates/index.html b/templates/index.html index 2ea271d..278765c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -132,8 +132,8 @@ <label class="control-label" for="top">Number of results</label> <div class="controls"> <input type="text" class="input-xlarge" id="top" name="top" - placeholder="10" value="10"> - <span class="help-inline">display only the top results</span> + placeholder="-1" value="-1"> + <span class="help-inline">display only the top results (-1 for all)</span> </div> </div> <div class="form-actions">
tor-commits@lists.torproject.org