clodman84 / Updated-Newer-Fresher-Version-3

It's DoPy bitches!!!!!!!!!!!!!!
https://updated-newer-fresher-version-3.readthedocs.io/en/latest/
1 stars 3 forks source link

There is no check to see if the messList is valid or not #7

Closed clodman84 closed 2 months ago

clodman84 commented 2 months ago

There should be check to verify the contents of the messList

Database.read_mess_list() expects a very specific format for the messList. In case someone accidentally loads the wrong csv file or if the messlist format is updated. The program should notify us.

How would you implement this?

Simply counting the number of rows or checking the titles are not enough. You need to verify that the contents of each column are what they claim to be, this might involve a little regex or something like that. If you really feel like you could update the read_mess_list() function to infer the contents of the columns automatically to protect it from a case where the columns are shuffled.