Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"当日参与任务统计" 未格式化输出 #374

Open
4 tasks done
NPBeta opened this issue May 3, 2020 · 8 comments
Open
4 tasks done

"当日参与任务统计" 未格式化输出 #374

NPBeta opened this issue May 3, 2020 · 8 comments

Comments

@NPBeta
Copy link

NPBeta commented May 3, 2020

问题描述
控制台输入 1 查询统计,小电视遗漏统计等正常,但“当日参与任务统计”的输出未格式化。

截图或者视频或者报错文字
请见 PasteBin:https://paste.ubuntu.com/p/X83Bvy9YVD/

必要的系统信息描述等

  • Ubuntu 18.04.4 LTS (Server),已 apt update && apt upgrade 并重启
  • Python 3.6.9 / Python 3.8.0
  • 从 PIP 安装的第三方库为最新

最近何时更新的脚本
最新 Commit,已 git pull

最后确认

  • 我仔细看了requirements.txt,确认里面的模块我都安装并及时更新了
  • 我代码上次更新时间距今没有超过 2 个月以上
  • 我仔细阅读了 conf 里面的 sample 文件(包括user.sample.toml和ctrl.sample.toml),并发现如果发生了改动,及时更新了我的 toml 对应文件
  • 我仔细检查了 readme 最近更新情况,并查看了最近更新内容
@yjqiang
Copy link
Owner

yjqiang commented May 3, 2020

? 图呢

@shoucandanghehe
Copy link

Screenshot_20200503_194914_com microsoft rdc android
他应该指这个吧

@NPBeta
Copy link
Author

NPBeta commented May 3, 2020

? 图呢

插入链接的 Markdown 语法错了,抱歉
https://paste.ubuntu.com/p/X83Bvy9YVD/
此外, @shoucandanghehe 补充的图片也是正确的,感谢。

@keaiye
Copy link

keaiye commented May 3, 2020

#237
bili_statistics.py注释208行和209行即可关闭调试的打印

print(self.max_time_task_checkers)

print(self.unique_task_checkers)

@NPBeta
Copy link
Author

NPBeta commented May 3, 2020

#237
bili_statistics.py注释208行和209行即可关闭调试的打印

print(self.max_time_task_checkers)

print(self.unique_task_checkers)

问题是它并没有输出统计结果,仅仅输出了调试信息

@keaiye
Copy link

keaiye commented May 3, 2020

#237
bili_statistics.py注释208行和209行即可关闭调试的打印

print(self.max_time_task_checkers)

print(self.unique_task_checkers)

问题是它并没有输出统计结果,仅仅输出了调试信息

你注释掉调试就有格式好的统计结果了

@shoucandanghehe
Copy link

《之后会去掉》

@NPBeta
Copy link
Author

NPBeta commented May 4, 2020

#237
bili_statistics.py注释208行和209行即可关闭调试的打印

print(self.max_time_task_checkers)

print(self.unique_task_checkers)

问题是它并没有输出统计结果,仅仅输出了调试信息

你注释掉调试就有格式好的统计结果了

不论从代码还是实践来看,注释掉都不可能会有格式好的统计结果。
208 和 209 行之后的代码,已经不在 else 代码块内部。
无相关代码支持,如何输出格式化结果?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants