зеркало из https://github.com/mozilla/treeherder.git
make sure value passed to int is defined
This commit is contained in:
Родитель
993921fbed
Коммит
502bf21dff
|
@ -480,14 +480,14 @@ class JobsModel(TreeherderModelBase):
|
||||||
for signature in eta_groups:
|
for signature in eta_groups:
|
||||||
|
|
||||||
pending_samples = map(
|
pending_samples = map(
|
||||||
lambda x: int(x),
|
lambda x: int(x or 0),
|
||||||
eta_groups[signature]['pending_samples'].split(',') )
|
eta_groups[signature]['pending_samples'].split(',') )
|
||||||
|
|
||||||
pending_median = self.get_median_from_sorted_list(
|
pending_median = self.get_median_from_sorted_list(
|
||||||
sorted(pending_samples))
|
sorted(pending_samples))
|
||||||
|
|
||||||
running_samples = map(
|
running_samples = map(
|
||||||
lambda x: int(x),
|
lambda x: int(x or 0),
|
||||||
eta_groups[signature]['running_samples'].split(',') )
|
eta_groups[signature]['running_samples'].split(',') )
|
||||||
|
|
||||||
running_median = self.get_median_from_sorted_list(
|
running_median = self.get_median_from_sorted_list(
|
||||||
|
|
Загрузка…
Ссылка в новой задаче