Fix default media_type mismatch

parent 9009366e
......@@ -60,7 +60,7 @@ def create_argparser():
parser_get = subparsers.add_parser("get", help="Get specific message")
parser_get.add_argument("msgid", help="ID of notification message")
parser_get.add_argument("media_type", help="Media type of notification message", nargs="?", default="simple")
parser_get.add_argument("media_type", help="Media type of notification message", nargs="?", default="plain")
parser_get.add_argument("lang", help="Language of notification message", nargs="?", default="en")
parser_get.add_argument("--force-media-type", dest="force_media_type", help="Request media type and don't return default media type in case requested one is not available", action="store_true")
......
......@@ -45,7 +45,7 @@ class Api:
self.plugins = PluginStorage(plugin_dir)
self.notifications = NotificationStorage(volatile_dir, persistent_dir, self.plugins)
def get_notifications(self, media_type='simple', lang='en'):
def get_notifications(self, media_type='plain', lang='en'):
"""Return all notifications"""
self.notifications.delete_invalid_messages()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment