diff --git a/api-daemon/pvcapid/benchmark.py b/api-daemon/pvcapid/benchmark.py index 7d38c14b..3a1de714 100755 --- a/api-daemon/pvcapid/benchmark.py +++ b/api-daemon/pvcapid/benchmark.py @@ -95,7 +95,7 @@ def close_database(conn, cur, failed=False): conn.close() def list_benchmarks(job=None): - if limit is not None: + if job is not None: query = "SELECT * FROM {} WHERE job = %s;".format('storage_benchmarks') args = (job, ) else: