Skip to content

Commit

Permalink
infoファイルが無い場合のデフォルト値がバグってたので修正
Browse files Browse the repository at this point in the history
  • Loading branch information
joker1007 committed Jun 18, 2014
1 parent c5e732d commit a5a4b85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/pasokara/create_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ def create_by_movie_info(movie_info)
fullpath: movie_info.path,
duration: movie_info.duration,
nico_vid: movie_info.vid.presence,
nico_view_count: movie_info.view_count,
nico_mylist_count: movie_info.mylist_count,
nico_view_count: movie_info.view_count.presence || 0,
nico_mylist_count: movie_info.mylist_count.presence || 0,
nico_posted_at: movie_info.posted_at,
nico_description: movie_info.description
)
Expand Down

0 comments on commit a5a4b85

Please sign in to comment.