Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions succulent/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def data(self):
Response: JSON response with the stored data.
"""
data = self.processing.data(request)
if data['valid'] == False:
if not data['valid']:
return jsonify({'message': data['message']}), data.get('code', 400)

# Missing values (NaN) and infinities are not valid JSON, so send them
Expand All @@ -177,7 +177,7 @@ def export(self):
"""Export the stored data to a CSV file.
"""
data = self.processing.export(request)
if data['valid'] == False:
if not data['valid']:
return jsonify({'message': data['message']}), data.get('code', 400)

# Convert DataFrame to CSV
Expand Down
Loading