From cdbb8cbc39dc96aa0b906887264936726f5c6f17 Mon Sep 17 00:00:00 2001 From: Rabbit Date: Fri, 20 Dec 2024 20:03:50 +0800 Subject: [PATCH] chore: update ft count filter --- app/workers/generate_rgbpp_assets_statistic_worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/workers/generate_rgbpp_assets_statistic_worker.rb b/app/workers/generate_rgbpp_assets_statistic_worker.rb index fb4798f2c..795d0f8b7 100644 --- a/app/workers/generate_rgbpp_assets_statistic_worker.rb +++ b/app/workers/generate_rgbpp_assets_statistic_worker.rb @@ -24,7 +24,7 @@ def perform(datetime = nil) def ft_count_attributes timestamp = CkbUtils.time_in_milliseconds(ended_at) - 1 - xudts_count = Udt.published_xudt.where(block_timestamp: ..timestamp).count + xudts_count = Udt.where(udt_type: %i[xudt xudt_compatible], block_timestamp: ..timestamp).count { indicator: "ft_count", value: xudts_count, network: "global" } end