Cleans sessions in leader.py

Closes all open sessions in leader module.
Adds task to bugs file
This commit is contained in:
Julien Lengrand-Lambert
2013-01-21 16:43:51 +01:00
parent c60a5ee901
commit d8f1949ea7
2 changed files with 8 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
TODO:
Set all folders/parameters in prroperties files and do not have to modify code.
How is it possible to know which thread raised the error ? Output only says thread.py
enhancement : Session is redefined again and again over the code.

View File

@@ -97,6 +97,8 @@ class LeaderBoard():
top_members = self.get_hashtag_leaders(session, h, self.size)
leaders.append([h, top_members])
session.close()
return leaders
def get_hashtag_leaders(self, session, hashtag, size=10):