Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <[email protected]>
  • Loading branch information
zmcNotafraid committed Dec 25, 2024
2 parents b78d3ab + e063bf7 commit d0bfc41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/daily_statistic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,8 @@ def liquidity

define_logic :activity_address_contract_distribution do
block_ids = blocks_in_current_period.pluck(:id)
results = CellOutput.joins(:lock_script).established_status.where(block_id: block_ids).group(:code_hash).count
uniq_address_ids = CellOutput.established_status.where(block_id: block_ids).select(:address_id).distinct.map { |cell_output| cell_output.address_id }
results = Address.joins(:lock_script).where(id: uniq_address_ids).group(:code_hash).count
parsed_results =
results.each_with_object({}) do |(key, value), hash|
hex_key = "0x#{key.unpack1('H*')}"
Expand Down
3 changes: 3 additions & 0 deletions db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6306,8 +6306,11 @@ INSERT INTO "schema_migrations" (version) VALUES
('20241212022531'),
('20241213053309'),
('20241218085721'),
<<<<<<< HEAD
('20241223023654'),
('20241223060331'),
=======
>>>>>>> issue-804
('20241225045757');


0 comments on commit d0bfc41

Please sign in to comment.