mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
RideImport
... in addition to DateTime in the .json File name (which is in local Time), also check for duplicates using UTC from RideCache to avoid duplicate imports if user changes his PC TimeZone (e.g. when travelling) ... the problem e.g. occurs in Autoimport where the same files would be imported again, if the PC TimeZone changes
This commit is contained in:
@@ -843,6 +843,17 @@ RideCache::getRide(QString filename)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
RideItem *
|
||||
RideCache::getRide(QDateTime dateTime)
|
||||
{
|
||||
foreach(RideItem *item, rides())
|
||||
if (item->dateTime == dateTime)
|
||||
return item;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
QHash<QString,int>
|
||||
RideCache::getRankedValues(QString field)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user