return empty table from get_scores. Fixes assertion error.

This commit is contained in:
Senghan Bright 2021-01-14 23:04:02 +01:00
parent c2d21f474a
commit 2c2b8b16c2

View File

@ -58,7 +58,7 @@ local function filter_timestamps(timestamps, file_id)
end
local function get_file_scores()
if not sql_wrapper then return end
if not sql_wrapper then return {} end
local scores = {}
local files = sql_wrapper:do_transaction('get_all_filepaths')