Changeset 38296 for trunk/ippTools
- Timestamp:
- May 21, 2015, 8:13:08 AM (11 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 3 edited
-
share/staticskytool_todo.sql (modified) (2 diffs)
-
src/staticskytool.c (modified) (1 diff)
-
src/staticskytoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/staticskytool_todo.sql
r34726 r38296 12 12 skycell.glong, 13 13 skycell.glat, 14 staticskyResult.path_base, 14 15 IFNULL(Label.priority, 10000) AS priority 15 16 FROM staticskyRun … … 20 21 LEFT JOIN Label ON staticskyRun.label = Label.label 21 22 WHERE 22 (staticskyRun.state = 'new' AND staticskyResult.sky_id IS NULL) 23 ((staticskyRun.state = 'new' AND staticskyResult.sky_id IS NULL) 24 OR (staticskyRun.state = 'update' AND staticskyResult.fault = 0)) 25 23 26 AND (Label.active OR Label.active IS NULL) 24 27 -
trunk/ippTools/src/staticskytool.c
r37999 r38296 787 787 788 788 PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false); 789 PXOPT_LOOKUP_S16(quality, config->args, "-set_quality", false, false); 789 790 790 791 psMetadata *where = psMetadataAlloc(); 791 792 PXOPT_COPY_S64(config->args, where, "-sky_id", "sky_id", "=="); 792 793 793 if (!pxSetFaultCode(config->dbh, "staticskyResult", where, fault, 0)) {794 if (!pxSetFaultCode(config->dbh, "staticskyResult", where, fault, quality)) { 794 795 psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag"); 795 796 psFree (where); -
trunk/ippTools/src/staticskytoolConfig.c
r37999 r38296 148 148 psMetadataAddS64(updateresultArgs, PS_LIST_TAIL, "-sky_id", 0, "define staticksky ID (required)", 0); 149 149 psMetadataAddS16(updateresultArgs, PS_LIST_TAIL, "-fault", 0, "set fault code (required)", 0); 150 psMetadataAddS16(updateresultArgs, PS_LIST_TAIL, "-set_quality", 0, "set quality", 0); 150 151 151 152 // -exportrun
Note:
See TracChangeset
for help on using the changeset viewer.
