From 517e947f5ab92e233677f95286af9feabeb68fbc Mon Sep 17 00:00:00 2001 From: Eevee Date: Tue, 5 Apr 2011 21:46:11 -0700 Subject: [PATCH] Unbreak db.connect(), whoops. --- pokedex/db/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pokedex/db/__init__.py b/pokedex/db/__init__.py index ea103e7..c4013f4 100644 --- a/pokedex/db/__init__.py +++ b/pokedex/db/__init__.py @@ -45,9 +45,9 @@ def connect(uri=None, session_args={}, engine_args={}, engine_prefix=''): **all_session_args) session = MultilangScopedSession(sm) - # Default to English - session.default_language = session.query(Language) \ - .filter_by(identifier=u'en') \ - .one() + # Default to English. Warning, magic constant, blah blah. Trying to fetch + # English here would kinda break on new databases. TODO still not an ideal + # solution, I guess. + session._default_language_id = 9 return session -- 2.7.4