-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Columns duration, totalDistance and totalEnergyBurned should be converted to float.
healthkit-to-sqlite/healthkit_to_sqlite/utils.py
Lines 50 to 57 in 71e36e1
| def workout_to_db(workout, db, zipfile=None): | |
| record = dict(workout.attrib) | |
| # add metadata entry items as extra keys | |
| for el in workout.findall("MetadataEntry"): | |
| record["metadata_" + el.attrib["key"]] = el.attrib["value"] | |
| # Dump any WorkoutEvent in a nested list for the moment | |
| record["workout_events"] = [el.attrib for el in workout.findall("WorkoutEvent")] | |
| pk = db["workouts"].insert(record, alter=True, hash_id="id").last_pk |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request