IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 14, 2012, 11:31:25 AM (14 years ago)
Author:
Serge CHASTEL
Message:

Added the RESTRICTED_COUNT keyword so that we can restrict even on count when it takes too much time querying (e.g. rawBurntoolState)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/def/autocode.php

    r34012 r34014  
    2929
    3030// Note: the restriction is now moved AFTER the count query
     31// unless the RESTRICT_COUNT keyword is used
     32if ($restricted == 0) {
     33  if ("$RESTRICT_COUNT" != "none") {
     34    $WHERE = "$WHERE $RESTRICT_COUNT";
     35  }
     36}
    3137
    3238// Add GROUP BY statements if any
     
    5561// Restrict the query if it is necessary
    5662if ($restricted == 0) {
    57   if ("$UNRESTRICTED" != "none") {
     63  if ( ("$UNRESTRICTED" != "none") && ("$RESTRICT_COUNT" == "none") ) {
    5864    $WHERE = "$WHERE $UNRESTRICTED";
    5965  }
Note: See TracChangeset for help on using the changeset viewer.