Skip to content

Commit

Permalink
gci: Fix Travis CI pull requests
Browse files Browse the repository at this point in the history
In Travis CI Pull Requests, the GCI data has been loaded
from the previous production build, but the GitHub and GitLab
tokens are not available, preventing any students from being
linked to GitHub or GitLab, resulting in an empty list.

Related to coala#3
  • Loading branch information
jayvdb committed Dec 17, 2017
1 parent 067838c commit 1e136c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gci/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def index(request):

def gci_overview():
linked_students = list(get_linked_students())
if not linked_students:
return ['No GCI students are linked']

org_id = linked_students[0]['organization_id']
org_name = linked_students[0]['organization_name']
Expand Down

0 comments on commit 1e136c7

Please sign in to comment.