Skip to content

Commit baad0f1

Browse files
committed
Set default twitch_extension_version to 0.0.1
1 parent 86f163c commit baad0f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/flask/app/apis/channels.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ def twitch_rc_dccon(dccon_url):
5959
dccon_url = args['dccon_url'] if 'dccon_url' in args else None
6060
dccon_type = args['dccon_type'] if 'dccon_type' in args else None
6161
is_using_cache = parse_bool(args['is_using_cache']) if 'is_using_cache' in args else None
62-
twitch_extension_version = args['twitch_extension_version'] if 'twitch_extension_version' in args else '0.0.1'
62+
twitch_extension_version = args['twitch_extension_version'] if 'twitch_extension_version' in args else None
63+
64+
if twitch_extension_version is None:
65+
twitch_extension_version = '0.0.1'
6366

6467
if dccon_type not in Channel.DCCON_TYPES:
6568
abort(400, '{dccon_type} is invalid dccon_type'.format(dccon_type=dccon_type))

0 commit comments

Comments
 (0)