- Timestamp:
- Dec 6, 2024, 1:31:41 PM (20 months ago)
- Location:
- branches/eam_branches/ipp-20230313/ippTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20230313/ippTools
- Property svn:mergeinfo changed
/trunk/ippTools merged: 42712
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20230313/ippTools/src
- Property svn:mergeinfo changed
/trunk/ippTools/src merged: 42712
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20230313/ippTools/src/addtool.c
r42738 r42757 140 140 PXOPT_LOOKUP_BOOL(uncensored, config->args, "-uncensored", false); 141 141 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 142 PXOPT_LOOKUP_BOOL(addrand, config->args, "-addrand", false); 142 143 143 144 PXOPT_LOOKUP_BOOL(pretend, config->args, "-pretend", false); … … 424 425 else if (strcmp(stage,"fullforce_summary") == 0) { 425 426 psStringAppend(&query, " GROUP BY ff_id "); //needs to be checked, but should be fine: want 1 ff summary cmf. 427 } 428 429 // random order of pending files 430 if (addrand) { 431 psStringAppend(&query, " order by rand()"); 426 432 } 427 433 … … 1089 1095 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 1090 1096 PXOPT_LOOKUP_BOOL(multiadd, config->args, "-multiadd", false); 1097 PXOPT_LOOKUP_BOOL(addrand, config->args, "-addrand", false); 1091 1098 1092 1099 psString query = NULL; … … 1125 1132 psStringAppend(&query, " AND %s", whereClause); 1126 1133 psFree(whereClause); 1134 } 1135 // random order of pending files 1136 if (addrand) { 1137 psStringAppend(&query, " ORDER BY RAND()"); 1127 1138 } 1128 1139 psFree(where);
Note:
See TracChangeset
for help on using the changeset viewer.
