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: settings.py renderer μΆ”κ°€ #108

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

dudtlstm
Copy link
Contributor

@dudtlstm dudtlstm commented Oct 7, 2024

πŸ”₯ Pull requests

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

Feat: μ„€μ • μ‹œκ°„μ— 따라 운영 μƒνƒœ λ³€κ²½
Fix: settings.py renderer μΆ”κ°€

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

    @property
    def is_operated(self):
        current_time = timezone.now()
        if self.open_time and self.close_time:
            if self.open_time <= current_time < self.close_time:
                return 'operating'  # 운영 μ‹œκ°„ 내이면 '운영 쀑'
            elif current_time >= self.close_time:
                return 'finished'  # 마감 μ‹œκ°„μ„ λ„˜κ²ΌμœΌλ©΄ '운영 μ’…λ£Œ'
            else:
                return 'not_started'  # 아직 μ‹œμž‘ μ‹œκ°„μ΄ λ˜μ§€ μ•Šμ•˜μœΌλ©΄ '운영 μ „'
        return 'not_started'

βœ… Check List

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

@dudtlstm dudtlstm added πŸ±μ˜μ‹ μž‘μ—… μ˜μ‹  μž‘μ—… πŸ› οΈFix 버그 ν”½μŠ€ labels Oct 7, 2024
@dudtlstm dudtlstm merged commit 947a1b2 into LINE-NOW:main Oct 7, 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