mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
ensure a string is returned
Very old values in EU db were missing this.
This commit is contained in:
@@ -49,7 +49,10 @@ def kw_metrics(job):
|
||||
|
||||
|
||||
def round_to_2sd(number):
|
||||
return str(int(float('%.2g' % number)))
|
||||
if number:
|
||||
return str(int(float('%.2g' % number)))
|
||||
else:
|
||||
return '-1'
|
||||
|
||||
|
||||
def main(argv):
|
||||
|
||||
Reference in New Issue
Block a user