diff --git a/sna/analyzers/expertise_analyzer.py b/sna/analyzers/expertise_analyzer.py index 7c82145..13df5b1 100644 --- a/sna/analyzers/expertise_analyzer.py +++ b/sna/analyzers/expertise_analyzer.py @@ -5,6 +5,7 @@ @author: aitor """ from sets import Set +from datetime import date import pg # TODO: delete once the queries are djangoized @@ -69,10 +70,10 @@ def group_by_expertise(self, persons_expertise): expertises[tag].add(person) return expertises - # based on the person expertises recovers their chronological evolution + # Based on the person expertises recovers their chronological evolution def get_expertise_year(self, person, expertises): - startYear = 2004 - endYear = 2013 + startYear = 2004 # TODO change it to the first year of the person in the lab + endYear = date.today().year expertise_year = {} for expertise in expertises: