forked from enviPath/enviPy
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:
@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user