lib/services/statistic_service.rb in codebreaker_paratskiy-0.2.0 vs lib/services/statistic_service.rb in codebreaker_paratskiy-0.2.1
- old
+ new
@@ -18,8 +18,8 @@
def self.sort_stats
stats.sort_by { |player| [player[:attempts_total], player[:attempts_used], player[:hints_used]] }
end
def self.stats
- DbUtils.get(DB)
+ DbUtils.get(DB) || []
end
end