you are right. fixed.


On Sat, Feb 8, 2014 at 7:00 PM, Álvaro Justen <notifications@github.com>wrote:

> In Monitor/monitor_app/app.py:
>
> > @@ -129,37 +147,153 @@ def config():
> >
> >  @app.route('/feeds')
> >  def feeds():
> > -    conf = models.Configuration.query.first()
> > -    C = pymongo.MongoClient(conf.mongohost)
> > +    C = pymongo.MongoClient(app.config["MEDIACLOUD_DATABASE_HOST"])
>
> I don't know the best practice here but what if we start the connection
> outside the function? I mean, have only one connection per server (not per
> request).
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/NAMD/mediacloud_backend/pull/48/files#r9566166>
> .
>



-- 
Flávio Codeço Coelho
================
+55(21) 3799-5551
Professor
Escola de Matemática Aplicada
Fundação Getulio Vargas
Praia de Botafogo, 190 sala 312
Rio de Janeiro - RJ
22250-900
Brasil