X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/a058598f1ee11c60f9718d0ec677df1424be79c3..fe7afb91d071aaf21034561840588e82425f3d8a:/floof/controllers/main.py?ds=sidebyside diff --git a/floof/controllers/main.py b/floof/controllers/main.py index e57e99a..1eb447c 100644 --- a/floof/controllers/main.py +++ b/floof/controllers/main.py @@ -1,10 +1,10 @@ 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 from floof.model.art import Art log = logging.getLogger(__name__) @@ -12,5 +12,5 @@ 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')