From 373bd144cbb8cedb9cb2b23f2b9e410e670f2632 Mon Sep 17 00:00:00 2001 From: Rabbit Date: Fri, 20 Dec 2024 20:05:05 +0800 Subject: [PATCH] chore: update ft count filter (#2362) --- 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