PSC-PublicHealth / HERMES

0 stars 0 forks source link

Small question regarding logic in csv_tools #120

Open WoahDomino opened 5 years ago

WoahDomino commented 5 years ago

lines 219-223 (I think) in utils/csv_tools.py are:

               if (stringsAreQuoted 
                    and ((words[i].startswith('"') 
                          and words[i].endswith('"'))
                         or (words[i].startswith('"') 
                             and words[i].endswith('"')))):

Am I crazy or is the or clause the same statement twice? Is it trying to catch different forms of quotes? Because it's probably not working as intended if that's the case?