|
From: <dg...@us...> - 2011-08-28 11:40:05
|
Revision: 866
http://pytrainer.svn.sourceforge.net/pytrainer/?rev=866&view=rev
Author: dgranda
Date: 2011-08-28 11:39:59 +0000 (Sun, 28 Aug 2011)
Log Message:
-----------
Equipment was missing when importing activity from file - ticket:137
Modified Paths:
--------------
pytrainer/trunk/pytrainer/gui/windowrecord.py
Modified: pytrainer/trunk/pytrainer/gui/windowrecord.py
===================================================================
--- pytrainer/trunk/pytrainer/gui/windowrecord.py 2011-08-28 11:20:48 UTC (rev 865)
+++ pytrainer/trunk/pytrainer/gui/windowrecord.py 2011-08-28 11:39:59 UTC (rev 866)
@@ -248,7 +248,8 @@
activity["rcd_title"] = activity["rcd_title"].replace("\"","'")
#Add activity to DB etc
laps = activity.pop("laps", ())
- self.activity_data[index]["db_id"] = self.parent.insertRecord(activity, laps)
+ selected_equipment_ids = self._get_selected_equipment_ids()
+ self.activity_data[index]["db_id"] = self.parent.insertRecord(activity, laps, equipment=selected_equipment_ids)
row += 1
logging.debug("Processed %d rows of activity data" % row)
else:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|