diff --git a/OpenBench/utils.py b/OpenBench/utils.py index c031359..d842f85 100644 --- a/OpenBench/utils.py +++ b/OpenBench/utils.py @@ -270,8 +270,7 @@ def getMachine(machineid, user, osname, threads): # Create a new Machine if needed if machineid == 'None': - return Machine.objects.create( - user=user, osname=osname, threads=threads) + return Machine(user=user, osname=osname, threads=threads) # Fetch and verify the requested Machine try: machine = Machine.objects.get(id=int(machineid))