mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
Fix Python activityIntervals start and stop
Changed from Int to Float since they may be not integer
This commit is contained in:
@@ -1247,10 +1247,10 @@ Bindings::activityIntervals(QString type, PyObject* activity) const
|
||||
if (type.isEmpty() || type == RideFileInterval::typeDescription(item->type)) {
|
||||
|
||||
// START
|
||||
PyList_SET_ITEM(startlist, idx, PyLong_FromLong(item->start));
|
||||
PyList_SET_ITEM(startlist, idx, PyFloat_FromDouble(item->start));
|
||||
|
||||
// STOP
|
||||
PyList_SET_ITEM(stoplist, idx, PyLong_FromLong(item->stop));
|
||||
PyList_SET_ITEM(stoplist, idx, PyFloat_FromDouble(item->stop));
|
||||
|
||||
// NAME
|
||||
PyList_SET_ITEM(namelist, idx, PyUnicode_FromString(item->name.toUtf8().constData()));
|
||||
|
||||
Reference in New Issue
Block a user