Skip to content

Commit

Permalink
Merge pull request #183 from cs50/legacy
Browse files Browse the repository at this point in the history
Legacy
  • Loading branch information
Kareem Zidane authored Jul 26, 2019
2 parents 2884dc7 + 74bc845 commit b902dc0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ def create_mo_files():
},
data_files=create_mo_files(),
url="https://github.com/cs50/submit50",
version="2.4.11"
version="2.4.12"
)
10 changes: 5 additions & 5 deletions submit50.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def submit(org, branch):
"""Submit work."""

# check announcements
res = requests.get("https://cs50.me/status/submit50")
res = requests.get("https://legacy.cs50.me/status/submit50")
if res.status_code == 200 and res.text.strip():
raise Error(res.text.strip())

Expand All @@ -438,7 +438,7 @@ def submit(org, branch):
timestamp = timestamp.strftime("%Y%m%dT%H%M%SZ")

# check version
res = requests.get("https://cs50.me/versions/submit50")
res = requests.get("https://legacy.cs50.me/versions/submit50")
if res.status_code != 200:
raise Error(_("You have an unknown version of submit50. "
"Email [email protected]!"))
Expand Down Expand Up @@ -528,10 +528,10 @@ def submit(org, branch):
except BaseException:
if password:
e = Error(_("Looks like {} isn't enabled for your account yet. "
"Go to https://cs50.me/authorize and make sure you accept any pending invitations!".format(org, org)))
"Go to https://legacy.cs50.me/authorize and make sure you accept any pending invitations!".format(org, org)))
else:
e = Error(_("Looks like you have the wrong username in ~/.gitconfig or {} isn't yet enabled for your account. "
"Double-check ~/.gitconfig and then log into https://cs50.me/ in a browser, "
"Double-check ~/.gitconfig and then log into https://legacy.cs50.me/ in a browser, "
"click \"Authorize application\" if prompted, and re-run {} here.".format(org, org)))
e.__cause__ = None
raise e
Expand Down Expand Up @@ -654,7 +654,7 @@ def unescape(s):

# successful submission
if org == "submit50":
cprint(_("Submitted {}! See https://cs50.me/submissions.").format(branch),
cprint(_("Submitted {}! See https://legacy.cs50.me/submissions.").format(branch),
"green")
progress(False)
return username, commit_hash
Expand Down

0 comments on commit b902dc0

Please sign in to comment.