MCPcopy Index your code
hub / github.com/pyload/pyload / home

Function home

module/web/pyload_app.py:242–254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240@route("/home")
241@login_required("LIST")
242def 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")

Callers

nothing calls this directly

Calls 6

toDictFunction · 0.90
redirectFunction · 0.90
render_to_responseFunction · 0.90
statusDownloadsMethod · 0.45
getMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected