Skip to content

Commit

Permalink
- Always add new Games to Setup Scanning
Browse files Browse the repository at this point in the history
- Increase Setup/Teardown Scanning lists to 200 Games
  • Loading branch information
Mebibyte committed Mar 23, 2019
1 parent a93dda6 commit 01ca88d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/models/game.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Game < ActiveRecord::Base
validates_format_of :barcode, with: Utilities.BARCODE_FORMAT
validates :title, presence: true

ST_LIMIT_COUNT = 150
ST_LIMIT_COUNT = 200

STATUS = { :active => 0, :culled => 1, :stored => 2 }

Expand Down Expand Up @@ -196,9 +196,7 @@ def self.generate(params)
end

if !game.errors || game.errors.messages.blank?
if !Event.current.setup_complete?
Setup.where(event: Event.current).add_new_game(game)
end
Setup.where(event: Event.current).add_new_game(game)
end

game
Expand Down

0 comments on commit 01ca88d

Please sign in to comment.