-
Notifications
You must be signed in to change notification settings - Fork 16
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
small improvements #14
Conversation
@@ -226,6 +226,7 @@ def inline_add_repo(update, context): | |||
results = [] | |||
if access_token: | |||
filtered_repositories = [] | |||
registered_repos = context.chat_data.setdefault('repos', {}) |
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.
Inline callbacks have no chat_data as they don't receive the chat.
This leads me to believe that this might be quite difficult to implement.
@@ -180,7 +180,7 @@ def __init__(self, key, value, text=None, states=None, default=None): | |||
if (text is None and states is None) or (text is not None and states is not None): | |||
raise RuntimeError | |||
if text is not None: | |||
states = ((False, text), (True, '\u2714' + text)) | |||
states = ((False, text), (True, '☑️' + text)) |
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.
This looks good :D
pip-selfcheck.json | ||
|
||
.vscode |
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.
Please don't add IDE specific stuff to gitignore files. It's a much better idea to use the global gitignore on your system :)
Thanks a lot for taking the time to do this. I've left some review comments :) |
please test, cause I don't have a proper setup yet