Changeset 40 for trunk


Ignore:
Timestamp:
Sep 12, 2020, 5:03:29 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Update distance even if it is lower than previously recorded distance. There can be some corrections of distance to make it lower.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r39 r40  
    268268        }
    269269
    270         if ($Runners[$Item['ChipNumber']]['Distance'] < $Item['OverallDistance'])
     270        if ($Runners[$Item['ChipNumber']]['Distance'] != $Item['OverallDistance'])
    271271        $Queries[] = $this->Database->GetInsert('RunnerStat', array(
    272272          'Time' => TimeToMysqlDateTime($Time),
     
    307307        }
    308308
    309         if ($Teams[$Item['GroupId']]['Distance'] < $Item['OverallDistance'])
     309        if ($Teams[$Item['GroupId']]['Distance'] != $Item['OverallDistance'])
    310310        $Queries[] = $this->Database->GetInsert('TeamStat', array(
    311311          'Time' => TimeToMysqlDateTime($Time),
Note: See TracChangeset for help on using the changeset viewer.