diff --git a/RELEASE.md b/RELEASE.md index 85b7453..28c8d15 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,3 +1,9 @@ +## 0.1.1 + +2024-06-28 + +- Fix: Add qq/sina channel to commands. + ## 0.1.0 2024-06-28 diff --git a/src/openctp_ctp_channels/__about__.py b/src/openctp_ctp_channels/__about__.py index b794fd4..df9144c 100644 --- a/src/openctp_ctp_channels/__about__.py +++ b/src/openctp_ctp_channels/__about__.py @@ -1 +1 @@ -__version__ = '0.1.0' +__version__ = '0.1.1' diff --git a/src/openctp_ctp_channels/cli.py b/src/openctp_ctp_channels/cli.py index bbc5a63..594fdcc 100644 --- a/src/openctp_ctp_channels/cli.py +++ b/src/openctp_ctp_channels/cli.py @@ -18,10 +18,17 @@ def check(): def switch(channel): if 'tts' == channel: channel = channels.TTSChannel() - channel.switch() elif 'ctp' == channel: channel = channels.CTPChannel() - channel.switch() + elif 'qq' == channel: + channel = channels.QQChannel() + elif 'sina' == channel: + channel = channels.SinaChannel() + else: + print("Unsupported channel!") + return + + channel.switch() @click.command(help="Show all channels.")