From 0ea9978ffb4b97cb403434a0b83307a5a81faa9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Sun, 29 Dec 2024 21:57:45 +0100 Subject: [PATCH] Remove troublesome code --- ram/ram/settings.py | 2 +- ram/ram/utils.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ram/ram/settings.py b/ram/ram/settings.py index da3b6fe..1acf5b3 100644 --- a/ram/ram/settings.py +++ b/ram/ram/settings.py @@ -170,7 +170,7 @@ # The file must be placed in the root of the 'static' folder DEFAULT_CARD_IMAGE = "coming_soon.svg" -CSV_SEPARATOR = "," +# Second level ALT separator for CSV files (e.g. for properties) CSV_SEPARATOR_ALT = ";" DECODER_INTERFACES = [ diff --git a/ram/ram/utils.py b/ram/ram/utils.py index 230aad3..111c409 100644 --- a/ram/ram/utils.py +++ b/ram/ram/utils.py @@ -3,7 +3,6 @@ import hashlib import subprocess -from django.conf import settings from django.http import HttpResponse from django.utils.html import format_html from django.utils.text import slugify as django_slugify @@ -62,7 +61,7 @@ def slugify(string, custom_separator=None): return string -def generate_csv(header, data, filename, separator=settings.CSV_SEPARATOR): +def generate_csv(header, data, filename): response = HttpResponse(content_type="text/csv") response["Content-Disposition"] = 'attachment; filename="{}"'.format( filename