Commit a197f634 by kimth

Get_queuetime_str does not return None

parent 572e88d5
...@@ -86,7 +86,7 @@ class CorrectMap(object): ...@@ -86,7 +86,7 @@ class CorrectMap(object):
return self.is_queued(answer_id) and self.cmap[answer_id]['queuestate']['key'] == test_key return self.is_queued(answer_id) and self.cmap[answer_id]['queuestate']['key'] == test_key
def get_queuetime_str(self, answer_id): def get_queuetime_str(self, answer_id):
return self.cmap[answer_id]['queuestate']['time'] if self.is_queued(answer_id) else None return self.cmap[answer_id]['queuestate']['time']
def get_npoints(self, answer_id): def get_npoints(self, answer_id):
npoints = self.get_property(answer_id, 'npoints') npoints = self.get_property(answer_id, 'npoints')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment