()
| 240 | @route("/home") |
| 241 | @login_required("LIST") |
| 242 | def home(): |
| 243 | try: |
| 244 | res = [toDict(x) for x in PYLOAD.statusDownloads()] |
| 245 | except: |
| 246 | s = request.environ.get('beaker.session') |
| 247 | s.delete() |
| 248 | return redirect(PREFIX + "/login") |
| 249 | |
| 250 | for link in res: |
| 251 | if link["status"] == 12: |
| 252 | link["information"] = "%s kB @ %s kB/s" % (link["size"] - link["bleft"], link["speed"]) |
| 253 | |
| 254 | return render_to_response("home.html", {"res": res}, [pre_processor]) |
| 255 | |
| 256 | |
| 257 | @route("/queue") |
nothing calls this directly
no test coverage detected