Skip to content

Commit

Permalink
fix added
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Germain committed Nov 9, 2023
1 parent b3967aa commit 178c7bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion huginn_epic_store_new_free_game_agent.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |spec|
spec.name = "huginn_epic_store_new_free_game_agent"
spec.version = '0.2.0'
spec.version = '0.2.1'
spec.authors = ["Nicolas Germain"]
spec.email = ["[email protected]"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def fetch
log "event not created"
end
end
if !Time.now.to_i.between?(Time.parse(start_date).to_i, Time.parse(end_date).to_i)
if !start_date.nil? && !end_date.nil? && !Time.now.to_i.between?(Time.parse(start_date).to_i, Time.parse(end_date).to_i)
if interpolated['debug'] == 'true'
log "removing #{item['id']} to triggered list"
end
Expand Down

0 comments on commit 178c7bf

Please sign in to comment.