On 28 August 2011 02:13, David García Granda <dgra...@gmail.com> wrote: > > 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. > 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? - Nathan ------------------------------------------------------------------------------ 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