Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🩹 Fix: λΆ€μŠ€ λ¦¬μŠ€νŠΈμ—μ„œλ„ status 3개만 ν¬ν•¨ν•˜κ²Œ μˆ˜μ • #112

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

dudtlstm
Copy link
Contributor

@dudtlstm dudtlstm commented Oct 8, 2024

πŸ”₯ Pull requests

πŸ‘· μž‘μ—…ν•œ λ‚΄μš©

였λ₯˜λ‚΄μš©: λΆ€μŠ€ λ¦¬μŠ€νŠΈμ—μ„œ λŒ€κΈ° λ§Žμ€ 수, λŒ€κΈ° 적은 μˆ˜κ°€ ν˜„μž¬ [λŒ€κΈ°μ€‘, μž…μž₯확정쀑, μž…μž₯쀑]만 ν¬ν•¨μ‹œμΌœμ•Ό λ˜λŠ”λ° μž…μž₯μ™„λ£Œ/λŒ€κΈ°μ·¨μ†Œ 도 λ‹€ ν¬ν•¨λ˜μ–΄ μ˜΅λ‹ˆλ‹€.

3개만 ν¬ν•¨ν•˜λ„λ‘ μˆ˜μ •ν•¨

πŸ–₯️ μ£Όμš” μ½”λ“œ μ„€λͺ…

    def get_queryset(self):
        # 운영 μƒνƒœμ— λ”°λ₯Έ μ •λ ¬ μš°μ„ μˆœμœ„ μ„€μ • ! '운영 쀑 - λŒ€κΈ° 쀑지 - 운영 μ „ - μš΄μ˜μ’…λ£Œ' 순
        queryset = Booth.objects.annotate(
            # 'waiting', 'ready_to_confirm', 'confirmed' μƒνƒœλ§Œ 카운트 !!!
            waiting_count=Count('waitings', filter=Q(waitings__waiting_status__in=['waiting', 'ready_to_confirm', 'confirmed'])),
            is_operated_order=Case(
                When(is_operated='operating', then=Value(1)),
                When(is_operated='paused', then=Value(2)),
                When(is_operated='not_started', then=Value(3)),
                When(is_operated='finished', then=Value(4)),
                output_field=IntegerField()
            )
        )

βœ… Check List

  • Merge λŒ€μƒ λΈŒλžœμΉ˜κ°€ μ˜¬λ°”λ₯Έκ°€?
  • μ΅œμ’… μ½”λ“œκ°€ μ—λŸ¬ 없이 잘 λ™μž‘ν•˜λŠ”κ°€?

@dudtlstm dudtlstm added πŸ±μ˜μ‹ μž‘μ—… μ˜μ‹  μž‘μ—… πŸ› οΈFix 버그 ν”½μŠ€ labels Oct 8, 2024
@dudtlstm dudtlstm self-assigned this Oct 8, 2024
@dudtlstm dudtlstm merged commit c66483c into LINE-NOW:main Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
πŸ±μ˜μ‹ μž‘μ—… μ˜μ‹  μž‘μ—… πŸ› οΈFix 버그 ν”½μŠ€
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant