X-Git-Url: http://git.veekun.com/zzz-spline-gts.git/blobdiff_plain/b2c947eb8b5a6ac012ae53d11f78f346b3a3230b..1962c19fbbd3638516e268454544ca5f4c19b8ed:/splinext/gts/controllers/gts_browse.py?ds=inline diff --git a/splinext/gts/controllers/gts_browse.py b/splinext/gts/controllers/gts_browse.py index acd6d15..8b8cb8a 100644 --- a/splinext/gts/controllers/gts_browse.py +++ b/splinext/gts/controllers/gts_browse.py @@ -7,14 +7,14 @@ import pokedex.db import pokedex.db.tables as tables from pokedex.struct import SaveFilePokemon from pylons import config, request, response, session, tmpl_context as c, url -from pylons.controllers.util import abort, redirect_to +from pylons.controllers.util import abort, redirect from sqlalchemy.orm.exc import NoResultFound from spline.model import meta from spline.lib.base import BaseController, render from spline.lib import helpers as h from splinext.gts import model as gts_model -from splinext.pokedex.db import pokedex_session +import splinext.pokedex.db as db log = logging.getLogger(__name__) @@ -28,7 +28,7 @@ class GTSBrowseController(BaseController): c.savefiles = [] for gts_pokemon in gts_pokemons: savefile = SaveFilePokemon(gts_pokemon.pokemon_blob) - savefile.use_database_session(pokedex_session) + savefile.use_database_session(db.pokedex_session) c.savefiles.append(savefile) return render('/gts/list.mako')