Browse Source

port the dict queries processing to python2.6

* method viewkeys() not available in python2.6
* instead we iterate now with simple for-loop over queries dict
master
T. Meissner 11 years ago
parent
commit
bc2672e776
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      scripts/abfahrtsmonitor.py

+ 2
- 1
scripts/abfahrtsmonitor.py View File

@ -27,7 +27,8 @@ validqueries = ["haltestelle.do", "abfahrten.do"]
if (form.getvalue('query')):
query = form.getvalue('query')
for key in queries.viewkeys():
for key in queries:
#.viewkeys():
if (form.getvalue(key)):
queries[key] = form.getvalue(key)


Loading…
Cancel
Save