From: <jb...@us...> - 2010-11-07 20:59:34
|
Revision: 681 http://pytrainer.svn.sourceforge.net/pytrainer/?rev=681&view=rev Author: jblance Date: 2010-11-07 20:59:28 +0000 (Sun, 07 Nov 2010) Log Message: ----------- Bug fixes for sports filtering from Patrick Modified Paths: -------------- pytrainer/trunk/pytrainer/gui/windowmain.py pytrainer/trunk/pytrainer/main.py pytrainer/trunk/pytrainer/record.py Modified: pytrainer/trunk/pytrainer/gui/windowmain.py =================================================================== --- pytrainer/trunk/pytrainer/gui/windowmain.py 2010-11-07 10:59:44 UTC (rev 680) +++ pytrainer/trunk/pytrainer/gui/windowmain.py 2010-11-07 20:59:28 UTC (rev 681) @@ -1410,6 +1410,7 @@ logging.debug("--") if self.sportlist.get_active() != self.activeSport: self.activeSport = self.sportlist.get_active() + self.parent.refreshListRecords() self.parent.refreshGraphView(self.selected_view) else: logging.debug("on_sportlist_changed called with no change") Modified: pytrainer/trunk/pytrainer/main.py =================================================================== --- pytrainer/trunk/pytrainer/main.py 2010-11-07 10:59:44 UTC (rev 680) +++ pytrainer/trunk/pytrainer/main.py 2010-11-07 20:59:28 UTC (rev 681) @@ -50,7 +50,7 @@ class pyTrainer: def __init__(self,filename = None, data_path = None): #Version constants - self.version ="1.7.2_svn#678" + self.version ="1.7.2_svn#681" self.DB_version = 6 #Process command line options self.startup_options = self.get_options() Modified: pytrainer/trunk/pytrainer/record.py =================================================================== --- pytrainer/trunk/pytrainer/record.py 2010-11-07 10:59:44 UTC (rev 680) +++ pytrainer/trunk/pytrainer/record.py 2010-11-07 20:59:28 UTC (rev 681) @@ -487,7 +487,7 @@ if not id_sport: records = self.pytrainer_main.ddbb.select("records","date","date LIKE '"+year+"-"+month+"-%'") else: - records = self.ddbb.select("records","date","date LIKE \"%s-%s-%%\" and sport=\"%s\"" %(year,month,id_sport)) + records = self.pytrainer_main.ddbb.select("records","date","date LIKE \"%s-%s-%%\" and sport=\"%s\"" %(year,month,id_sport)) logging.debug('Found '+str(len(records))+' entries') day_list = [] for i in records: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |