always show software

This commit is contained in:
706f6f7079646f6f646f6f 2021-10-08 15:47:09 +02:00
parent 21e29411af
commit 39caca33d8

View File

@ -5,7 +5,7 @@ module Invidious::Routes::API::V1::Misc
env.response.content_type = "application/json"
if !CONFIG.statistics_enabled
return error_json(400, "Statistics are not enabled.")
return error_json(400, "Statistics are not enabled.", {"software" => SOFTWARE})
end
Invidious::Jobs::StatisticsRefreshJob::STATISTICS.to_json