rki-mf1 / covsonar

A database-driven system for handling genomic sequences of SARS-CoV-2 and screening genomic profiles.
GNU General Public License v3.0
6 stars 0 forks source link

Fix matching on multiple properties and profiles #101

Closed matthuska closed 1 year ago

matthuska commented 1 year ago

Previously there would always be no matches returned when you query for > 1 property. I suspect the same would be the case if you searched for > 1 profile as well, or mixtures of the two. This fix was tested with multiple properties and profiles, as well as negation.

I don't love the if count == 0 stuff, if you want to rewrite that in a more elegant way then feel free.

matthuska commented 1 year ago

I found problems with this solution when querying using wildcards (e.g. match --LINEAGE "B.1%"). Will reopen this when I find a solution.