Skip to content

Commit e29abfb

Browse files
committed
Finished stats
1 parent 91f1d61 commit e29abfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/services/github_service.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class GithubService
44
def initialize(user)
55
@connection = Hurley::Client.new("https://api.github.com")
66
@connection.query[:access_token] = user.token
7-
@stats = GithubStats.new('#{user.nickname}')
7+
@stats = GithubStats.new('bad6e')
88
end
99

1010
def find_user_repos(user)
@@ -28,11 +28,11 @@ def find_user_total_commits(user)
2828
end
2929

3030
def find_user_current_streak(user)
31-
@stats.stats.streak.count
31+
@stats.streak.count
3232
end
3333

3434
def find_user_longest_streak(user)
35-
@stats.stats.longest_streak.count
35+
@stats.longest_streak.count
3636
end
3737

3838
def total_starred_repos(user)

0 commit comments

Comments
 (0)