Skip to content

Commit

Permalink
Fixed: Mapping Backfill Job Setting Current = False for Mapped Variants
Browse files Browse the repository at this point in the history
  • Loading branch information
bencap committed Nov 27, 2024
1 parent 82cc0d6 commit a301873
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mavedb/scripts/populate_mapped_variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ def populate_mapped_variant_data(db: Session, urns: Sequence[Optional[str]], all

try:
existing_mapped_variants = (
db.query(MappedVariant).join(Variant).join(ScoreSet).filter(MappedVariant.current.is_(True)).all()
db.query(MappedVariant)
.join(Variant)
.join(ScoreSet)
.filter(ScoreSet.id == ss_id, MappedVariant.current.is_(True))
.all()
)

for variant in existing_mapped_variants:
Expand Down

0 comments on commit a301873

Please sign in to comment.