-
Notifications
You must be signed in to change notification settings - Fork 1
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
Store score and reasons #16
Comments
Can't we put |
Thinking of a larger schema, incorporating #10 as well, like
The updates for the present table would be,
The |
Saving the total score in the Posts-Table: okay. (at least as a temporary solution) But saving a list of reasons in a single column: No way. That would be redundant and really hard to parse to get statistics. I'd rather learn Python and implement this on my own than I would let anybody store a list as one string ;-) :-D |
If you want to learn Python and do it by yourself, then you've got quite a lot of time, as I'm terribly busy. :-D Anyway, if that's the issue, then we can have a new table:
The attribute in I'm open to better ideas. |
Okay, so as @quartata mentioned in chat, we can have an additional table which holds posts and reasons together. The schema would be:
|
As we are also handling reposts, I think we would need to have a |
Wouldn‘t it be enogh to compare the user urls?
Von meinem iPhone gesendet
… Am 01.02.2018 um 09:18 schrieb Bhargav Rao ***@***.***>:
As we are also handling reposts, I think we would need to have a type field which can contain the values plagiarized or reposted.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Perfect, that's the best way. |
So yeah, I think we'll need to make both the reason_id and the reason as primary keys. This is because, we can utilize that constraint to prevent adding additional rows with the same reason text.
|
To provide better statistics about the reports, we'd need to store the score of a report and maybe even the reasons.
Table reason:
Table reason_for_post:
The text was updated successfully, but these errors were encountered: