inspirehep / inspire-dojson

INSPIRE-specific rules to transform from MARCXML to JSON and back.
GNU General Public License v3.0
3 stars 18 forks source link

utils: fix setting of default_server #253

Closed tsgit closed 5 years ago

tsgit commented 5 years ago

SERVER_NAME is a always present as a key in app.app_context(), but initialized to None. Therefore the usual way to define a default does not apply. This patch sets default_server as intended if no SERVER_NAME is defined in the app context.

Signed-off-by: Thorsten Schwander thorsten.schwander@gmail.com