Skip to content

Send PR#22

Open
rsxss wants to merge 24 commits into
devmountaintechfest:mainfrom
rsxss:main
Open

Send PR#22
rsxss wants to merge 24 commits into
devmountaintechfest:mainfrom
rsxss:main

Conversation

@rsxss

@rsxss rsxss commented Oct 9, 2022

Copy link
Copy Markdown

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

สมาชิก 🤗

N.SX
Sathipp
Jiruschai

🔥 Repo: hackathon 🔥
👀 Visualization: link 👀

@annibuliful

Copy link
Copy Markdown
Collaborator

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

@rsxss

rsxss commented Oct 9, 2022

Copy link
Copy Markdown
Author

55555555555

Comment thread xml2csv.py
for record in records:
if convert_default and (
record[10].text != "1"
or record[9].text not in ("Airhostess", "Pilot", "Steward")

Copy link
Copy Markdown
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

Comment thread xml2csv.py
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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