Skip to content

Commit

Permalink
SRTrain 인스턴스 출력시 열차번호 추가. (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
yunikim77 authored Sep 2, 2023
1 parent 8531b68 commit 2b15c21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SRT/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ def __repr__(self):

def dump(self):
d = (
"[{name}] "
"[{name} {number}] "
"{month}월 {day}일, "
"{dep}~{arr}"
"({dep_hour}:{dep_min}~{arr_hour}:{arr_min}) "
"특실 {special_state}, 일반실 {general_state}"
).format(
name=self.train_name,
number=self.train_number,
month=self.dep_date[4:6],
day=self.dep_date[6:8],
dep=self.dep_station_name,
Expand Down

0 comments on commit 2b15c21

Please sign in to comment.