mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Unbreak db.connect(), whoops.
This commit is contained in:
parent
acf44c63a0
commit
5b0f290ec5
1 changed files with 4 additions and 4 deletions
|
@ -45,9 +45,9 @@ def connect(uri=None, session_args={}, engine_args={}, engine_prefix=''):
|
||||||
**all_session_args)
|
**all_session_args)
|
||||||
session = MultilangScopedSession(sm)
|
session = MultilangScopedSession(sm)
|
||||||
|
|
||||||
# Default to English
|
# Default to English. Warning, magic constant, blah blah. Trying to fetch
|
||||||
session.default_language = session.query(Language) \
|
# English here would kinda break on new databases. TODO still not an ideal
|
||||||
.filter_by(identifier=u'en') \
|
# solution, I guess.
|
||||||
.one()
|
session._default_language_id = 9
|
||||||
|
|
||||||
return session
|
return session
|
||||||
|
|
Loading…
Reference in a new issue