diff options
author | cedricbonhomme <devnull@localhost> | 2012-03-11 09:02:04 +0100 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2012-03-11 09:02:04 +0100 |
commit | 658a7fbae8901d7e9ed1f3942351692db5bbb0ea (patch) | |
tree | bfbf1a94dd5a54fa3a8ff6c83d235a6fe5062bfc | |
parent | Renamed search function 'q' to 'search'. (diff) | |
download | newspipe-658a7fbae8901d7e9ed1f3942351692db5bbb0ea.tar.gz newspipe-658a7fbae8901d7e9ed1f3942351692db5bbb0ea.tar.bz2 newspipe-658a7fbae8901d7e9ed1f3942351692db5bbb0ea.zip |
Minor bugfix in search() (variable with duplicate name).
-rwxr-xr-x | pyAggr3g470r.py | 6 |
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 />' |