X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/68a31d533aba7490c3f1f812075e8ab6eb9265d0..422dfbb85e3efd51efd676779012aeb3f9575ba4:/floof/controllers/main.py diff --git a/floof/controllers/main.py b/floof/controllers/main.py index 2b8b877..1eb447c 100644 --- a/floof/controllers/main.py +++ b/floof/controllers/main.py @@ -1,15 +1,16 @@ import logging +import elixir from pylons import request, response, session, tmpl_context as c from pylons.controllers.util import abort, redirect_to from floof.lib.base import BaseController, render -from floof.model import meta, Art +from floof.model.art import Art log = logging.getLogger(__name__) class MainController(BaseController): def index(self): - c.artwork = meta.Session.query(Art).order_by(Art.id.desc()).all() + c.artwork = Art.query.order_by(Art.id.desc()).all() return render('/index.mako')