Skip to content

Commit

Permalink
#43 Fix issue with ReportConfig#build to generate immediately if indi…
Browse files Browse the repository at this point in the history
…cated.
  • Loading branch information
mdaines-r7 committed Jan 30, 2014
1 parent 45d2334 commit 6be1519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nexpose/report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def self.load(connection, report_config_id)
def self.build(connection, site_id, site_name, type, format, generate_now = false)
name = %(#{site_name} #{type} report in #{format})
config = ReportConfig.new(name, type, format)
config.frequency = Frequency.new(true, false)
config.frequency = Frequency.new(true, false) unless generate_now
config.filters << Filter.new('site', site_id)
config.save(connection, generate_now)
config
Expand Down

0 comments on commit 6be1519

Please sign in to comment.