-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add metrics #38
Add metrics #38
Conversation
meldebot/mel/poll.py
Outdated
question = "\n".join(old_message.split("\n")[:-4]) | ||
|
||
mel_votes = [ | ||
(f'@{row["username"]}', row["vote"]) for row in votes if row["vote"] > 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor note: if a user doesn't have @username it will use the public name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same behaviour as before 👍
I've added the missing docstring to the get_username method.
Co-authored-by: Gerard Dalmau <[email protected]>
Case
Close #16
Observations
Added dependencies:
Using PostgreSQL as the metrics database (at least for now)
This also unblocks us for #9 as we can now update the message and store the content.