Skip to content

Commit

Permalink
dataset_version in where
Browse files Browse the repository at this point in the history
  • Loading branch information
talavis committed Apr 25, 2019
1 parent 1bc2c5a commit f2a569f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/importer/data_importer/raw_data_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ def _insert_variants(self):
if fmt_alleles != fmt_alleles2:
query = db.Variant.update(orig_alt_alleles=fmt_alleles2).where((db.Variant.chrom==base['chrom']) &
(db.Variant.pos==base['pos']) &
(db.Variant.ref==base['ref']))
(db.Variant.ref==base['ref']) &
(db.Variant.ref==base['dataset_version']))
query.execute()

for i, alt in enumerate(alt_alleles):
Expand Down

0 comments on commit f2a569f

Please sign in to comment.