Skip to content
This repository was archived by the owner on Feb 20, 2020. It is now read-only.

Commit

Permalink
1.0.6 - bugfix max reports iterator and personal attendance
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Chernyi committed Apr 1, 2019
1 parent d8683ed commit 6d111f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jekyll-wowattendance.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'jekyll-wowattendance'
s.version = '1.0.5'
s.version = '1.0.6'
s.date = '2019-02-19'
s.summary = "Guild RT attendance"
s.description = "Guild RT attendance. Parses WarcraftLogs.com to grab attendance data for guild and teams. That gem can merge twinks to receive more relevant stats. Example: https://forestguild.club/attendance"
Expand Down
5 changes: 4 additions & 1 deletion lib/jekyll/commands/attendance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def init_with_program(prog)
Jekyll.logger.info 'Attendance table url: ' + url
data = {}
fightLinks = []
iReports = 0
iReports = 1
doc = Nokogiri::HTML(open(url), nil, Encoding::UTF_8.to_s).css("#attendance-table")
Jekyll.logger.info 'Found following reports:'
doc.css('a').each do |a|
Expand Down Expand Up @@ -63,6 +63,9 @@ def init_with_program(prog)
data[person]["items"][i] = (cell.attr('class') == "present" ? 1 : 0)
end
end
if i >= (options['max'].to_i + 2)
break
end
i+=1
end
end
Expand Down

0 comments on commit 6d111f5

Please sign in to comment.