Changeset 14826


Ignore:
Timestamp:
02/04/13 05:29:01 (12 years ago)
Author:
Daniela Dorner
Message:
added sorting direction for gettodo for processing (i.e. order of processing can be changed on the fly)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Sourcefile.sh

    r13310 r14826  
    212212   prims=( `getfromsetup $step "Primaries"` )
    213213   maintable=`getfromsetup $step "MainTable" | sed -e "s/\ //g"`
     214   sort=`getfromsetup $step "SortDirection" | sed -e "s/\ //g"`
    214215#   echo " maintable: "$maintable
    215216#   echo " needs: "${needs[@]}
     
    294295   getstatusquery $2
    295296   # order by priority to the the number of the next step to be done
    296    query=$query" ORDER BY "$step"Status.fPriority desc "
     297   query=$query" ORDER BY "$step"Status.fPriority "
     298   if [ "$sort" = "" ]
     299   then
     300      query=$query" DESC "
     301   else
     302      query=$query" "$sort
     303   fi
    297304   # add limitation in case only one or a limited number of
    298305   #  processes should be executed
Note: See TracChangeset for help on using the changeset viewer.