Changeset 42920
- Timestamp:
- Sep 8, 2025, 4:51:17 PM (10 months ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
-
pzgetexp.c (modified) (3 diffs)
-
pzgetexpConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pzgetexp.c
r42412 r42920 75 75 76 76 //optional 77 PXOPT_LOOKUP_STR(fromThisFileSet, config->args, "-last-fileset", false, false); 77 78 PXOPT_LOOKUP_S32(timeout, config->args, "-timeout", false, false); 78 79 PXOPT_LOOKUP_BOOL(all, config->args, "-all", false); … … 82 83 bool haveLastFileSet = false; 83 84 psString lastFileSet = NULL; 85 if (fromThisFileSet) { 86 haveLastFileSet = true; 87 lastFileSet = psStringCopy (lastFileSet); 88 } 84 89 85 90 // -all means "request all known filesets" 86 if (! all) {91 if (!lastFileSet && !all) { 87 92 char *query = "SELECT * from summitExp WHERE camera = \"%s\" and TELESCOPE = \"%s\" ORDER BY dateobs DESC LIMIT 1"; 88 93 if (!p_psDBRunQueryF(config->dbh, query, camera, telescope)) { … … 181 186 } 182 187 183 // XXX for test, make this not a temporary table: 184 // create a temporry table 188 // create a temporary table 185 189 { 186 190 char *query = "CREATE TEMPORARY TABLE incoming" -
trunk/ippTools/src/pzgetexpConfig.c
r42412 r42920 55 55 psMetadataAddBool(args, PS_LIST_TAIL, "-all", 0, 56 56 "download ALL filesets", 0); 57 psMetadataAddStr(args , PS_LIST_TAIL, "-last-fileset", 0, 58 "download from this fileset (optional)", ""); 57 59 psMetadataAddBool(args, PS_LIST_TAIL, "-ignore-errors", 0, 58 60 "do not fail if one of the entries raises a database error", 0);
Note:
See TracChangeset
for help on using the changeset viewer.
