-
Notifications
You must be signed in to change notification settings - Fork 927
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
Check GitHub for exclude files #115
Conversation
submit50.py
Outdated
# separate branch into problem slug and source repo | ||
branch = branch.rstrip("@cs50/checks") | ||
try: | ||
slug, src = branch.split("@", 1) |
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.
Why the 1
?
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.
Was an old version, not required anymore. Fixed.
url = "https://cs50.me/excludes/{}/".format(branch) | ||
|
||
# separate branch into problem slug and source repo | ||
branch = branch.rstrip("@cs50/checks") |
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.
Is it necessary to strip this off, if it was, for whatever reason, explicitly mentioned?
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.
Yeah, it's necessary so that students don't end up with some of their submissions on cs50/2017/x/greedy
and some of them on cs50/2017/x/greedy@cs50/checks
, for example. Best to keep all submissions for the same problem in one predetermined branch.
locale/es/LC_MESSAGES/messages.po
Outdated
msgid "Submitted {}! See https://cs50.me/submissions/{}." | ||
msgstr "¡Se entregó {}! Puedes ver https://cs50.me/submissions/{}." | ||
msgid "Submitted {}! See https://cs50.me/submissions." | ||
msgstr "¡Se entregó {}! Puedes ver https://cs50.me/submissions/." |
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.
No need for trailing slash.
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.
Fixed!
submit50.py
Outdated
@@ -418,9 +418,17 @@ def submit(org, problem): | |||
if problem.split("/")[0].isdigit(): |
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.
What if problem.split
returns []
?
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 will go away, actually, per the other PR.
@dmalan, updated per your comments! |
No description provided.