make use of prediction_settings() method to ensure that a default setting is used in case no setting is set

This commit is contained in:
Tim Lorsbach
2025-06-24 11:33:58 +02:00
parent acdb62c08f
commit 843e8e6f07

View File

@ -908,7 +908,7 @@ def package_pathways(request, package_uuid):
pw = Pathway.create(current_package, name, description, stand_smiles)
if pw_mode != 'build':
pred_setting = current_user.default_setting
pred_setting = current_user.prediction_settings()
from .tasks import predict
predict.delay(pw.pk, pred_setting.pk)