Skip to content

Commit f8a631a

Browse files
committed
fixing single org case
1 parent 82630ce commit f8a631a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

github_activity/github_activity.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def get_activity(
7777
else:
7878
# We have just org
7979
search_query = f"user:{org}"
80+
8081
# Figure out dates for our query
8182
since_dt, since_is_git_ref = _get_datetime_and_type(org, repo, since)
8283
until_dt, until_is_git_ref = _get_datetime_and_type(org, repo, until)
@@ -436,7 +437,7 @@ def _parse_target(target):
436437
if len(parts) == 2:
437438
org, repo = parts
438439
elif len(parts) == 1:
439-
org = parts
440+
(org,) = parts
440441
repo = None
441442
else:
442443
raise ValueError(

0 commit comments

Comments
 (0)