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 delete samples #79

Closed silenus092 closed 1 year ago

silenus092 commented 2 years ago

Bug Report by Paul Wolk

First, it failed at this line (480):
- if not os.isfile(args.file):
-   AttributeError: module 'os' has no attribute 'isfile'
After I fixed this (locally, just to experiment) with os.path.isfile, another error occured in the same line.
- TypeError: stat: path should be string, bytes, os.PathLike or integer, not list
This is because you use nargs="+" for the file, which does not make sense to me since the help implies that only one file can be given.

I fixed this issue and updated the delete function to delete the record in other tables.

Next, I also update lineage-sublineage information.