Skip to content

Commit

Permalink
Re #7327 Prune list correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucet authored and VickieLynch committed Jun 24, 2013
1 parent 980f0e6 commit 0649b1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ void export_DateAndTime()
.def(init<int64_t>("Construct a total number of nanoseconds"))
.def("total_nanoseconds", &DateAndTime::totalNanoseconds)
.def("totalNanoseconds", &DateAndTime::totalNanoseconds)
.def("setToMinimum", &DateAndTime::setToMinimum)
.def("__str__", &Mantid::Kernel::DateAndTime::toISO8601String)
// cppcheck-suppress duplicateExpression
.def(self == self)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ def _update_content(self):
# Make sure that only recent jobs are displayed
oldest = DateAndTime(str(self._content.date_time_edit.dateTime().toString(QtCore.Qt.ISODate)))
this_job = DateAndTime(str(job_list[i][4]))
if this_job<oldest:
unavailable = DateAndTime(0)
unavailable.setToMinimum()
if this_job>unavailable and this_job<oldest:
continue

# Job ID
Expand Down

0 comments on commit 0649b1b

Please sign in to comment.