diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-20 08:38:02 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-20 08:38:02 +0000 |
commit | 2b7f60723917d68aa485f92bf853b2478c901706 (patch) | |
tree | 18f0bf5f76dafbfa346f82d5a2414a47bc1d9b7a /wk6/pset/dna | |
parent | 2f0751dd944810129163e7e4a34f1bd86a014766 (diff) |
Mon, May 20, 2024, 1:38 AM -07:00
Diffstat (limited to 'wk6/pset/dna')
-rw-r--r-- | wk6/pset/dna/dna.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/wk6/pset/dna/dna.py b/wk6/pset/dna/dna.py index 00e148e..5994878 100644 --- a/wk6/pset/dna/dna.py +++ b/wk6/pset/dna/dna.py @@ -48,15 +48,13 @@ def main(): # TODO: Check database for matching profiles for person in rows: # print(person) - counter = 0 + counter = 1 for i in range(len(fields)): if fields[i] != 'name': - if person[fields[i]] == matches[i]: + if int(person[fields[i]]) == matches[i]: counter += 1 - print(counter) else: break - print(counter, ',', len(fields)) if counter == len(fields): print(person['name']) return |