Hi, >> Actually yes. I follow a simpler approach so no changes in database >> are needed: standard duration is active one and difference with total >> one is shown (and on-the-fly calculated) just in main subtab under >> register one. Still need to do some tests, migration script (for >> database stored values) need to wait. > > Can you explain what you mean when you say that no DB changes are > required but the migration script for DB values needs to wait? This > seems to be a contradiction.
Ooops, sorry for confusion. What I wanted to say is that there are no changes in database structure, so no new fields are added. Regarding migration script, I would expect some users to have false figures in their databases (duration, paces) as a result of wrong calculations in the past. THose values are target one for migration script. >> Another topic, when reproducing ticket #137 >> (https://sourceforge.net/apps/trac/pytrainer/ticket/137) I saw null >> was stored as sport in database and I got following error on console >> >> File "/usr/lib/python2.7/site-packages/pytrainer/stats.py", line 55, >> in get_stats >> sport = self._sport_service.get_sport(r['sport']) >> File "/usr/lib/python2.7/site-packages/pytrainer/sport.py", line >> 148, in get_sport >> raise ValueError("Sport id cannot be None") >> ValueError: Sport id cannot be None > > This would happen if a record was created without having a sport > associated with it. I don't know how that can happen. Can you describe > the steps required to reproduce this scenario? Basically I take gpx file attached in ticket 137 (https://sourceforge.net/apps/trac/pytrainer/raw-attachment/ticket/137/serSession.gpx.bz2) and try to import it using unified import (File->Import) (I am aware clickpath in #137 is a different one). Then something is not working fine because activity doesn't show up, restart pytrainer and then mentioned error triggers. Regards, David ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Pytrainer-devel mailing list Pytrainer-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytrainer-devel