Changeset 17


Ignore:
Timestamp:
Sep 5, 2019, 6:04:03 PM (5 years ago)
Author:
chronos
Message:
  • Fixed: Compute hash only without Progress field.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r16 r17  
    262262    $Items = $this->QueryRunnersAll();
    263263    //print_r($Items);
    264     $Hash = md5(serialize($Items));
     264    $ItemsWithoutProgress = array();
     265    foreach ($Items as $Item)
     266    {
     267      unset($Item['Progress']);
     268      $ItemsWithoutProgress[] = $Item;
     269    }
     270    //print_r($Items);
     271    $Hash = md5(serialize($ItemsWithoutProgress));
    265272
    266273    $DbResult = $this->Database->query('SELECT * FROM Import ORDER BY Time DESC LIMIT 1');
     
    277284        'ItemCount' => count($Items)
    278285      ));
     286      file_put_contents('/home/teribear/www/import/'.$Hash.'.txt', print_r($Items, true));
    279287    }
    280288  }
Note: See TracChangeset for help on using the changeset viewer.