aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-03-11 09:02:04 +0100
committercedricbonhomme <devnull@localhost>2012-03-11 09:02:04 +0100
commit658a7fbae8901d7e9ed1f3942351692db5bbb0ea (patch)
treebfbf1a94dd5a54fa3a8ff6c83d235a6fe5062bfc
parentRenamed search function 'q' to 'search'. (diff)
downloadnewspipe-658a7fbae8901d7e9ed1f3942351692db5bbb0ea.tar.gz
newspipe-658a7fbae8901d7e9ed1f3942351692db5bbb0ea.tar.bz2
newspipe-658a7fbae8901d7e9ed1f3942351692db5bbb0ea.zip
Minor bugfix in search() (variable with duplicate name).
-rwxr-xr-xpyAggr3g470r.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index caf5853a..ba103355 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -906,12 +906,12 @@ class Root:
(feed["feed_id"], article["article_id"], not_read_begin, \
article_title, not_read_end, description) + like + "<br />\n"
if query == "all":
- query = "year"
+ query_string = "year"
elif "year" in query:
- query = "year:" + the_year + "-month"
+ query_string = "year:" + the_year + "-month"
if "month" not in query:
html += '<div style="width: 35%; overflow:hidden; text-align: justify">' + \
- utils.tag_cloud([(elem, timeline[elem]) for elem in timeline.keys()], query) + '</div>'
+ utils.tag_cloud([(elem, timeline[elem]) for elem in timeline.keys()], query_string) + '</div>'
html += '<br /><br /><h1>Search with a month+year picker</h1>\n'
html += '<form>\n\t<input name="m" type="month">\n\t<input type="submit" value="Go">\n</form>'
html += '<hr />'
bgstack15