replace msettings by Moulinette

This commit is contained in:
Kayou 2021-09-02 16:52:16 +02:00 committed by GitHub
parent 94b1bdebb3
commit 57a2e4032f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -631,7 +631,7 @@ def user_export():
writer.writerow(user) writer.writerow(user)
body = csv_io.getvalue().rstrip() body = csv_io.getvalue().rstrip()
if msettings.get('interface') == 'api': if Moulinette.interface.type == 'api':
# We return a raw bottle HTTPresponse (instead of serializable data like # We return a raw bottle HTTPresponse (instead of serializable data like
# list/dict, ...), which is gonna be picked and used directly by moulinette # list/dict, ...), which is gonna be picked and used directly by moulinette
from bottle import HTTPResponse from bottle import HTTPResponse