-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check that the last kadi dwell < 3 days old #48
Conversation
dwells = events.dwells.filter(-20) | ||
last_dwell = dwells[len(dwells) - 1] | ||
self.filetime = CxoTime(last_dwell.start).unix | ||
self.filedate = time.ctime(self.filetime) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is clunky but I didn't see a driver to update the formatting of the rest of the time strings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now.
Actually I don't see any description of testing, so not quite approved. |
Oops. Updated text with testing. |
Check that the last kadi dwell < 3 days old
For testing, I ran this as
jobwatch.skawatch.main()
and reviewed the output HTML. It seems reasonable:Independent inspection of kadi dwells shows the last stop time about 0.62 days from "now". I didn't confirm the time in local but seems reasonable.
When I ran this code two weeks ago when kadi was stuck, I saw the "red" that I expected in the report (code has changed a bit since then, but same idea).