Browse Source

Allow dict as argument

pull/190/head
Oliverpool 9 years ago
parent
commit
011bd60e8a
  1. 2
      patacrep/content/__init__.py

2
patacrep/content/__init__.py

@ -263,6 +263,8 @@ def process_content(content, config=None):
plugins = config.get('_content_plugins', {})
if not content:
content = [{'song': None}]
elif isinstance(content, dict):
content = [content]
for elem in content:
if isinstance(elem, str):
elem = {'song': elem}

Loading…
Cancel
Save