Skip to content

Commit

Permalink
Fix blank strings in the database
Browse files Browse the repository at this point in the history
  • Loading branch information
Fustrate committed Aug 1, 2024
1 parent 4b0abb2 commit 13130e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/game_thread_loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def add_game(game)
end
end

def insert_game(subreddit_id, game, post_at, starts_at, title = '')
def insert_game(subreddit_id, game, post_at, starts_at, title = nil)
data = row_data(game, starts_at, post_at, subreddit_id, title)

db.exec_params INSERT_GAME_THREAD, data.values_at(:post_at, :starts_at, :subreddit_id, :game_pk, :title)
Expand Down

0 comments on commit 13130e2

Please sign in to comment.