Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Better check for upload_filters
Browse files Browse the repository at this point in the history
- Stagecraft may pass this value through as `""` or `[]` or `None` and `if not upload_filters` works for all these cases.
  • Loading branch information
Ralph Cowling committed Apr 24, 2014
1 parent 82c7a26 commit a0cf1be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backdrop/core/data_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __new__(cls, name, data_group, data_type, raw_queries_allowed=False,
if not data_set_is_valid(name):
raise ValueError("DataSet name is not valid: '{}'".format(name))

if upload_filters is None:
if not upload_filters:
upload_filters = [
"backdrop.core.upload.filters.first_sheet_filter"]

Expand Down

0 comments on commit a0cf1be

Please sign in to comment.