Fix explicit filtering with id= in some Django versions
This commit is contained in:
1 parent
6d13a513f2
commit
6bbbeeeaad
1 file changed
+1
-1
@@ -79,7 +79,7 @@ def select_workload(machine):
|
||||
# Step 6: Repeat the same machine, if we are still at least 75% fair across the board
|
||||
if machine.workload in worker_dist.keys():
|
||||
if thread_sum > 0 and min_ratio / fair_ratio > 0.75:
|
||||
return Test.objects.get(machine.workload)
|
||||
return Test.objects.get(id=machine.workload)
|
||||
|
||||
# Step 7: Pick a random test, amongst those who share the min_ratio, weighted by throughput
|
||||
choices = [id for id, data in worker_dist.items() if data['ratio'] == min_ratio]
|
||||
|
||||
Reference in new issue
Block a user