Changeset 2444


Ignore:
Timestamp:
Nov 2, 2011, 4:47:26 AM (9 years ago)
Author:
komodo
Message:

fix tagging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/branches/senat/project/lib/task/tagSeanceTask.class.php

    r2428 r2444  
    8585    unset($words);
    8686
    87     $qs = Doctrine::getTable('Seance')->createQuery()->select('id')->where('tagged IS NULL')->orderBy('date DESC');
     87    $qs = Doctrine::getTable('Seance')->createQuery()->select('id')->where('tagged IS NULL')->orderBy('id'); // date DESC');
    8888//$qs = Doctrine::getTable('Seance')->createQuery()->select('id')->where('id = ?', '1859');
    8989
     
    150150      if (count($sentences)) {
    151151        foreach (array_keys($sentences) as $sent) {
    152           if  (preg_match("/^($debut_bani)/i", $sent) || preg_match("/($debut_bani)$/i", $sent) || preg_match('/\d|amendement|rapporteur|commision|collègue/i', $sent) )
     152          $sent = preg_replace('/[\[\]\(\)]/', '', $sent);
     153          if (preg_match("/^($debut_bani)/i", $sent) || preg_match("/($debut_bani)$/i", $sent) || preg_match('/\d|amendement|rapporteur|commision|collègue/i', $sent) )
    153154            continue;
    154155         
Note: See TracChangeset for help on using the changeset viewer.