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

Check GitHub for exclude files #115

Merged
merged 6 commits into from
Jul 31, 2017
Merged

Check GitHub for exclude files #115

merged 6 commits into from
Jul 31, 2017

Conversation

brianyu28
Copy link
Member

No description provided.

@brianyu28 brianyu28 requested a review from dmalan July 30, 2017 20:19
@brianyu28 brianyu28 changed the title Excludes Check GitHub for exclude files Jul 30, 2017
submit50.py Outdated
# separate branch into problem slug and source repo
branch = branch.rstrip("@cs50/checks")
try:
slug, src = branch.split("@", 1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the 1?

Copy link
Member Author

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")
Copy link
Member

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?

Copy link
Member Author

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.

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/."
Copy link
Member

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.

Copy link
Member Author

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():
Copy link
Member

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 []?

Copy link
Member Author

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.

@brianyu28
Copy link
Member Author

@dmalan, updated per your comments!

@brianyu28 brianyu28 merged commit 57faa9c into develop Jul 31, 2017
@brianyu28 brianyu28 deleted the excludes branch July 31, 2017 01:54
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

Successfully merging this pull request may close these issues.

2 participants