X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/a058598f1ee11c60f9718d0ec677df1424be79c3..d2cfab09f98980d5c1d433a9e75eb65e0b13b0aa:/floof/controllers/main.py 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')