                 l.text = t
             }
         }
-//        (type: String?, startTime: NSDate?, totalDistance: Double?, duration: Double?, averageHeartRate: Int?, totalCalories: Double?, notes: String?)
         
         var row = indexPath.row
         

                            if let workoutType = self.resultWorkoutData.type {
                                syncLog.setValue(workoutType, forKey: "workoutTypeStrava")
                            }
//                            if let workoutOtherType = self.resultWorkoutData.otherType {
//                                syncLog.setValue(workoutOtherType, forKey: "workoutOtherType")
//                            }
                        }
                        
                        var error: NSError?

                            if let workoutType = self.resultWorkoutData.type {
                                syncLog.setValue(workoutType, forKey: "workoutTypeStrava")
                            }
                        } else {
                            let entity =  NSEntityDescription.entityForName("SyncLog", inManagedObjectContext: managedContext)
                            let syncLog = NSManagedObject(entity: entity!, insertIntoManagedObjectContext:managedContext)
