Skip to content
Permalink
Browse files

fix value error (#327)

  • Loading branch information...
thealphadollar authored and canihavesomecoffee committed Aug 14, 2019
1 parent 2df3c6b commit 34f3ea81c7c8845389e3a59b42235495ca71686b
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod_test/controllers.py
@@ -103,8 +103,8 @@ def get_data_for_test(test, title=None) -> Dict[str, Any]:
# get average build and prep time.
prep_average_key = 'avg_prep_time_' + test.platform.value
build_average_key = 'avg_build_time_' + test.platform.value
average_prep_time = int(GeneralData.query.filter(GeneralData.key == prep_average_key).first().value)
average_build_time = int(GeneralData.query.filter(GeneralData.key == build_average_key).first().value)
average_prep_time = int(float(GeneralData.query.filter(GeneralData.key == prep_average_key).first().value))
average_build_time = int(float(GeneralData.query.filter(GeneralData.key == build_average_key).first().value))

queued_kvm = g.db.query(Kvm.test_id).filter(Kvm.test_id < test.id).subquery()
queued_kvm_entries = g.db.query(Test.id).filter(

0 comments on commit 34f3ea8

Please sign in to comment.
You can’t perform that action at this time.