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

关于审查功能的实现的问题 #28

Closed
adk23333 opened this issue Jan 25, 2024 · 3 comments
Closed

关于审查功能的实现的问题 #28

adk23333 opened this issue Jan 25, 2024 · 3 comments

Comments

@adk23333
Copy link
Contributor

源码有点散乱,没看懂你是怎么判断帖子是否已经审查过,以避免重复请求没变化的帖子的楼层。

@lumina37
Copy link
Owner

Thread为例,实现在这里。其实就是在executor外边包了层装饰器用来拦截重复检查。实现很糙(但是能用)
https://github.com/Starry-OvO/aiotieba-reviewer/blob/c9f07f50d6f49f4c698c87e8cfb0d3f700dc0a7e/aiotieba_reviewer/reviewer/thread/checker.py#L11-L31

@adk23333
Copy link
Contributor Author

adk23333 commented Jan 25, 2024

谢谢,看懂了。

@n0099
Copy link

n0099 commented Jan 28, 2024

还有个问题,每一楼的id还有楼中楼的id是独一无二的吗?或者只是在该吧内独一无二。

fid tid pid spid 百度uid都是全局唯一的且自增(新注册的百度uid前几年开始不自增了) 因而可以 https://en.wikipedia.org/wiki/German_tank_problem https://z.n0099.net/#narrow/near/90308
pid spid共享同一个id空间也就是说不存在相同的pid和spid(但tid可以跟他们相同),因为13年引入的楼中楼(百度称subpost)本质上就是回复贴(百度称post

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

3 participants