Skip to content

Commit

Permalink
Remove troublesome code
Browse files Browse the repository at this point in the history
  • Loading branch information
daniviga committed Dec 29, 2024
1 parent 026ab06 commit 0ea9978
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ram/ram/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
3 changes: 1 addition & 2 deletions ram/ram/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0ea9978

Please sign in to comment.