Skip to content

[Bug]: company.select("IS", [...]) 복합 조회 시 세전순이익과 법인세비용 간 snakeId 충돌로 항목 누락 #14

@ghostflare76

Description

@ghostflare76

DartLab Version

0.7.15

Python Version

Other

Area

Company / Core

Description

company.select("IS", items) 에서 여러 항목을 한 번에 조회할 때, "세전순이익"과 "법인세비용"을 함께 요청하면 내부적으로
snakeId가 충돌하여 세전순이익(profit_before_tax)이 누락되고 법인세비용(income_taxes) 1건만 반환됩니다.
개별 조회시 에는 각각 정상적으로 반환됩니다. 복합 조회 시 내부 키 중복 처리 로직에서 하나가 덮어씌워지는 것으로 추정됩니다.

Steps to Reproduce

import dartlab

  c = dartlab.Company("014580")  # 하이록코리아

  # 개별 조회 — 각각 정상
  r1 = c.select("IS", ["세전순이익"])    # snakeId=profit_before_tax, val=18,246,881,370
  r2 = c.select("IS", ["법인세비용"])    # snakeId=income_taxes, val=3,888,085,717

  # 복합 조회 — 세전순이익 누락
  r3 = c.select("IS", ["세전순이익", "법인세비용"])
  print(len(r3))  # 1 (기대: 2)
  print(r3)       # income_taxes 만 반환, profit_before_tax 누락

Expected Behavior

2건 반환:

  • snakeId=profit_before_tax (세전순이익) → val=18,246,881,370
  • snakeId=income_taxes (법인세비용) → val=3,888,085,717

Actual Behavior

1건만 반환 (income_taxes). profit_before_tax 행이 누락됨. 내부적으로 두 항목이 같은 키로 처리되어 하나가 덮어씌워지는
것으로 추정.

Error Output / Logs


Operating System

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions