Changeset 19234
- Timestamp:
- 10/03/18 20:45:07 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/makeplots.cc
r19139 r19234 52 52 ("max-zd", var<double>(50), "Maximum zenith distance to display in other plots") 53 53 ("no-limits", po_switch(), "Switch off limits in plots") 54 ("no-ToO", po_switch(), "Skip all sources marked as target-of-opportunity (ToO)") 54 55 ; 55 56 … … 127 128 // ------------- Get Sources from databasse --------------------- 128 129 130 const string isToO = conf.Has("no-ToO") && conf.Get<bool>("no-ToO") ? " AND fIsToO=0" : ""; 131 129 132 const mysqlpp::StoreQueryResult res = 130 Database(fDatabase).query("SELECT fSourceName, fRightAscension, fDeclination FROM Source WHERE fSourceTypeKEY=1" ).store();133 Database(fDatabase).query("SELECT fSourceName, fRightAscension, fDeclination FROM Source WHERE fSourceTypeKEY=1"+isToO).store(); 131 134 132 135 // ------------- Create canvases and frames ---------------------
Note:
See TracChangeset
for help on using the changeset viewer.