diff --git a/.gitignore b/.gitignore index b03e902..c09ba98 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ *.pyc poetry.csv + +# macOS +.DS_Store diff --git a/scripts/merge.py b/scripts/merge.py index 3c053a4..49b94da 100644 --- a/scripts/merge.py +++ b/scripts/merge.py @@ -6,7 +6,7 @@ def merge(output): with open(output, 'w', encoding='utf-8') as o: for file in os.listdir(): - if file.endswith('.csv'): + if file.endswith('.csv') and file != output: with open(file, encoding='utf-8') as i: i.readline() # the first row is the header, skipping for line in i: