Skip to content

Commit

Permalink
Merge branch 'master' of github.com:sandialabs/InterSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohns committed Mar 15, 2024
2 parents 1e894a7 + 367548c commit 99b9b40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BatchActivity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ shared_ptr<DetectorPeakResponse> init_drf_from_name( std::string drf_file, std::
auto drf = DrfSelect::initARelEffDetector( SpecUtils::DetectorType::Unknown,
manufacturer, model );
if( drf )
return;
return drf;
}catch( std::exception &e )
{

Expand Down
3 changes: 2 additions & 1 deletion src/SpectrumViewerTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ void SpectrumViewerTester::writeStateStaticHtmlHeader( std::ostream &strm,
const UserState *dbstate )
{
const string username = dbstate->user ? dbstate->user->userName() : string("Unknown");
const int state_id = dbstate->user ? static_cast<int>(dbstate->user.id()) : -1;
const string now = WDateTime::currentDateTime().toString( DATE_TIME_FORMAT_STR ).toUTF8();

writeHtmlHeader( strm, dbstate->name.toUTF8() );
Expand All @@ -271,7 +272,7 @@ void SpectrumViewerTester::writeStateStaticHtmlHeader( std::ostream &strm,
<< "\t\t\t<tr><th>Description</th><td>"
<< dbstate->description.toUTF8() << "</td></tr>\n"
<< "\t\t\t<tr><th>User State ID</th><td>"
<< viewer->m_currentStateID << "</td></tr>\n"
<< state_id << "</td></tr>\n"
<< "\t\t\t<tr><th>Foreground ID</th><td>"
<< dbstate->foregroundId << "</td></tr>\n"
<< "\t\t\t<tr><th>Background ID</th><td>"
Expand Down

0 comments on commit 99b9b40

Please sign in to comment.