Skip to content

Commit 0f828f1

Browse files
authored
Update views.py
1 parent 9b22015 commit 0f828f1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sig/views.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@ class CsvSigCreateViewSet(mixins.CreateModelMixin,
162162
queryset = Sig.objects.all()
163163
serializer_class = SigSerializer
164164
def create(self, request, *args, **kwargs):
165-
# NOTE: I have several different sizes of csv in the parsers/csv folder
166-
# 10, 100, 250, 500, 1000, and all 23000+ (sig.csv)
167-
filepath = 'parsers/csv/drx_current.csv'
165+
filepath = 'parsers/csv/file_name.csv'
168166

169167
with open(filepath) as csv_file:
170168
csv_reader = csv.reader(csv_file, delimiter=',')
@@ -222,4 +220,4 @@ class UserViewSet(viewsets.ReadOnlyModelViewSet):
222220
This viewset automatically provides `list` and `detail` actions.
223221
"""
224222
queryset = User.objects.all()
225-
serializer_class = UserSerializer
223+
serializer_class = UserSerializer

0 commit comments

Comments
 (0)