Skip to content

Commit

Permalink
Fix #332
Browse files Browse the repository at this point in the history
  • Loading branch information
dridk committed Jun 30, 2022
1 parent 7243486 commit fa9c88a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions cutevariant/core/quicksearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,11 @@ def parse_gene_query(query: str) -> dict:
if not query:
return dict()

match = re.findall(r"^(\w+)$", query)

match = re.findall(r"^([\w-]+)$", query)
if match:
gene_name = match[0]

gene_col_name = "gene"

return {"$and": [{f"ann.{gene_col_name}": gene_name}]}
else:
return dict()
Expand Down
1 change: 0 additions & 1 deletion cutevariant/gui/plugins/genotypes/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,6 @@ def load_fields(self):
self.fields_button.blockSignals(False)

def on_refresh(self):
print("DEBUG")
# variant id
self.current_variant = self.mainwindow.get_state_data("current_variant")
if self.current_variant and "id" in self.current_variant:
Expand Down

0 comments on commit fa9c88a

Please sign in to comment.