Skip to content

Commit 879aac2

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 24ee3ee + c71de39 commit 879aac2

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,5 @@ $ pip3 install --upgrade agiocli
112112
$ agio --version
113113
agio, version X.Y.Z
114114
```
115+
116+
Draft a new release on GitHub https://github.com/eecs485staff/agio-cli/releases/

agiocli/utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def parse_project_string(user_input):
290290
if (match.group("asstype") and not match.group("num")
291291
and not match.group("subtitle")):
292292
subtitle = match.group("asstype")
293-
return None, None, subtitle
293+
return "", 0, subtitle
294294

295295
# Convert assignment type abbreviations to canonical "Project", "Lab", etc.
296296
assignment_types = {
@@ -317,6 +317,9 @@ def parse_project_string(user_input):
317317
num = int(match.group("num"))
318318
subtitle = match.group("subtitle")
319319

320+
assert asstype is not None, f"Parse proj type failed: '{user_input}'"
321+
assert num is not None, f"Parse proj num failed: '{user_input}'"
322+
assert subtitle is not None, f"Parse proj subtitle failed: '{user_input}'"
320323
return asstype, num, subtitle
321324

322325

@@ -587,6 +590,7 @@ def get_submission_smart(
587590

588591
# Get a group
589592
group = get_group_smart(group_arg, project_arg, course_arg, client)
593+
590594
# User provides "best"
591595
if submission_arg == "best":
592596
return client.get(f"/api/groups/{group['pk']}/ultimate_submission/")

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
description="A command line interface to autograder.io",
1616
long_description=LONG_DESCRIPTION,
1717
long_description_content_type="text/markdown",
18-
version="0.5.0",
18+
version="0.5.1",
1919
author="Andrew DeOrio",
2020
author_email="[email protected]",
2121
url="https://github.com/eecs485staff/agio-cli/",

0 commit comments

Comments
 (0)