NumberSir / nonebot_plugin_arktools

基于 OneBot 适配器的 NoneBot2 明日方舟小工具箱插件
MIT License
69 stars 15 forks source link

fix bug: unasync function using await #24

Closed KafCoppelia closed 1 year ago

KafCoppelia commented 1 year ago

修复当输入公招tag报错的bug

sourcery-ai[bot] commented 1 year ago

Sourcery Code Quality Report

✅  Merging this PR will increase code quality in the affected files by 0.05%.

Quality metrics Before After Change
Complexity 6.62 ⭐ 6.62 ⭐ 0.00
Method Length 123.67 😞 123.33 😞 -0.34 👍
Working memory 9.88 😞 9.88 😞 0.00
Quality 57.27% 🙂 57.32% 🙂 0.05% 👍
Other metrics Before After Change
Lines 53 53 0
Changed files Quality Before Quality After Quality Change
nonebot_plugin_arktools/open_recruitment/__init__.py 57.27% 🙂 57.32% 🙂 0.05% 👍

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
nonebot_plugin_arktools/open_recruitment/__init__.py _ 8 ⭐ 168 😞 10 😞 53.27% 🙂 Try splitting into smaller methods. Extract out complex expressions
nonebot_plugin_arktools/open_recruitment/__init__.py _ 5 ⭐ 117 🙂 10 😞 61.80% 🙂 Extract out complex expressions

Legend and Explanation

The emojis denote the absolute quality of the code:

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Help us improve this quality report!