Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix merge issue #643

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions viewer/cset_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,18 +290,6 @@ def create_mol(self, inchi, target, name=None) -> Compound:
current_identifier=name,
)
# This is a new compound.
# We must now set relationships to the Proposal that it applies to.
# We do this by copying the relationships from the Target.
num_target_proposals = len(target.project_id.all())
assert num_target_proposals > 0
if num_target_proposals > 1:
logger.warning(
'Compound Target %s has more than one Proposal (%d)',
target.title,
num_target_proposals,
)
for project in target.project_set.all():
cpd.project_id.add(project)
cpd.save()
# This is a new compound.
# We must now set relationships to the Proposal that it applies to.
Expand Down