Skip to content
Draft
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
9 changes: 8 additions & 1 deletion cove/cove_360/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,15 @@ def explore_360(request, pk, template='cove_360/explore.html'):
lib_cove_config=lib_cove_config))

else:
def conversion_warning_hook(w):
if hasattr(w.message, "path_till_now"):
if w.message.path_till_now == "publisher":
return 'Just "Publisher" should not appear in the Meta tab, did you mean "Publisher:Name"?'
else:
return w

context.update(convert_spreadsheet(upload_dir, upload_url, file_name, file_type, lib_cove_config, schema_360.schema_url,
schema_360.pkg_schema_url))
schema_360.pkg_schema_url, conversion_warning_hook=conversion_warning_hook))
with open(context['converted_path'], encoding='utf-8') as fp:
json_data = json.load(fp, parse_float=Decimal)

Expand Down