Skip to content
Snippets Groups Projects
Commit 32d021ae authored by Neda Moeini's avatar Neda Moeini
Browse files

Make ruff happy

parent 88d49aaa
No related branches found
Tags 0.8
No related merge requests found
......@@ -77,7 +77,7 @@ class CSVUploadForm(forms.Form):
# Step 2: Parse file and validate headers
raw_data = file.read().decode("utf-8")
normalized_data = raw_data.replace('\r\n', '\n').replace('\r', '\n')
normalized_data = raw_data.replace("\r\n", "\n").replace("\r", "\n")
csv_file = normalized_data.splitlines()
reader = csv.DictReader(csv_file, delimiter=",")
fieldnames = reader.fieldnames if reader.fieldnames is not None else []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment