Skip to content

Conversation

@rsxss
Copy link

@rsxss rsxss commented Oct 9, 2022

ทีม นอนต่อเลยได้ไหม

สมาชิก 🤗

N.SX
Sathipp
Jiruschai

🔥 Repo: hackathon 🔥
👀 Visualization: link 👀

@annibuliful
Copy link
Collaborator

นอนต่อเลยได้ไหม อย่าปล่อยให้ตัวฉันไป เธอก็รู้ว่าโค๊ดทั้งหมดอยู่ที่PR ตอนนี้ ก็จะแต่คำว่าบัคแทนคำบอกลา devmountain hackathon คงรู้ดี
@rsxss

@rsxss
Copy link
Author

rsxss commented Oct 9, 2022

55555555555

for record in records:
if convert_default and (
record[10].text != "1"
or record[9].text not in ("Airhostess", "Pilot", "Steward")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should keep ("Airhostess", "Pilot", "Steward") as new variable. it make more readable

leap_days = 0
target_date = datetime(int(date_str[6:]), int(date_str[3:5]), int(date_str[:2]))
for year in range(target_date.year, current_datetime.year + 2):
leap_days += not (year & 0b11)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0b11 is magic number so it would be better to create new variable to store it

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please explains the reason 0b11 is a magic number.

@annibuliful
Copy link
Collaborator

@rsxss ขอ email หน่อยครับ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants