make it actually work after suggestions

This commit is contained in:
AUTOMATIC 2023-05-19 10:05:07 +03:00
parent 1e5afd4fa9
commit 2140bd1c10

View File

@ -37,7 +37,7 @@ def list_optimizers():
new_optimizers = [x for x in new_optimizers if x.is_available()]
new_optimizers = sorted(new_optimizers, key=lambda x: x.priority(), reverse=True)
new_optimizers = sorted(new_optimizers, key=lambda x: x.priority, reverse=True)
optimizers.clear()
optimizers.extend(new_optimizers)