def GET(self): subject = get_lending_library(web.ctx.site, details=True, inlibrary=inlibrary.get_library() is not None, limit=24) return render_template("borrow/index", subject, stats=LoanStats())
def GET(self): rand = random.randint(0, 9999) sort = "random_%d desc" % rand subject = get_readable_books(web.ctx.site, details=True, limit=24, sort=sort) return render_template("borrow/read", subject, stats=LoanStats(), rand=rand)
def GET(self): rand = random.randint(0, 9999) sort = "random_%d desc" % rand subject = get_lending_library(web.ctx.site, details=True, inlibrary=inlibrary.get_library() is not None, limit=24, sort=sort) return render_template("borrow/index", subject, stats=LoanStats(), rand=rand)