We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91f1d61 commit e29abfbCopy full SHA for e29abfb
app/services/github_service.rb
@@ -4,7 +4,7 @@ class GithubService
4
def initialize(user)
5
@connection = Hurley::Client.new("https://api.github.com")
6
@connection.query[:access_token] = user.token
7
- @stats = GithubStats.new('#{user.nickname}')
+ @stats = GithubStats.new('bad6e')
8
end
9
10
def find_user_repos(user)
@@ -28,11 +28,11 @@ def find_user_total_commits(user)
28
29
30
def find_user_current_streak(user)
31
- @stats.stats.streak.count
+ @stats.streak.count
32
33
34
def find_user_longest_streak(user)
35
- @stats.stats.longest_streak.count
+ @stats.longest_streak.count
36
37
38
def total_starred_repos(user)
0 commit comments