Fixed: comparison of Array with Array failed
This commit is contained in:
parent
9e031b63cd
commit
2a050eb63d
|
@ -34,7 +34,7 @@ module AbfWorker
|
||||||
end
|
end
|
||||||
|
|
||||||
def sort_results_and_save(results, item = subject)
|
def sort_results_and_save(results, item = subject)
|
||||||
item.results = results.sort_by{ |r| [r['timestamp'], r['file_name']] }
|
item.results = results.sort_by{ |r| [r['timestamp'].to_s, r['file_name'].to_s] }
|
||||||
item.save(validate: false)
|
item.save(validate: false)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue