Changeset 31681 for trunk/ippTools/src
- Timestamp:
- Jun 22, 2011, 2:29:09 PM (15 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
-
staticskytool.c (modified) (3 diffs)
-
staticskytoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/staticskytool.c
r31293 r31681 128 128 PXOPT_LOOKUP_BOOL(pretend, config->args, "-pretend", false); 129 129 PXOPT_LOOKUP_BOOL(check_inputs, config->args, "-check_inputs", false); 130 PXOPT_LOOKUP_BOOL(rerun, config->args, "-rerun", false); 130 131 131 132 psString select = pxDataGet("staticskytool_definebyquery_select.sql"); … … 149 150 psFree(whereMD); 150 151 151 if (!p_psDBRunQueryF(config->dbh, select, where, num_filter)) { 152 psString make_unique = NULL; 153 if (!rerun) { 154 psStringAppend(&make_unique, "\nAND sky_id IS NULL"); 155 } 156 157 if (!p_psDBRunQueryF(config->dbh, select, where, where, num_filter, make_unique ? make_unique : "")) { 152 158 psError(PS_ERR_UNKNOWN, false, "database error"); 153 159 psFree(select); … … 155 161 } 156 162 psFree(select); 163 psFree(make_unique); 157 164 158 165 // we now have a list of (tess_id, skycell_id) that (potentially) meet out needs -
trunk/ippTools/src/staticskytoolConfig.c
r31293 r31681 61 61 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-set_reduction", 0, "define reduction", NULL); 62 62 psMetadataAddTime(definebyqueryArgs, PS_LIST_TAIL, "-set_registered", 0, "time detrend run was registered", now); 63 psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-rerun", 0, "queue new run even if one already exists for inputs", false); 63 64 psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-pretend", 0, "do not actually modify the database", false); 64 65 psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-check_inputs", 0, "list inputs, do not modify database", false);
Note:
See TracChangeset
for help on using the changeset viewer.
