#19 format date in additional_ridesharing_info.txt
This commit is contained in:
parent
f024bb01d1
commit
a32fcd3001
|
|
@ -162,9 +162,12 @@ class GtfsExport:
|
|||
def get_enum_value(enum):
|
||||
return enum.value if enum is not None else None
|
||||
|
||||
def format_date(date: datetime):
|
||||
return date.strftime("%Y%m%d %H:%M:%S")
|
||||
|
||||
return GtfsAdditionalRidesharingInfo(
|
||||
trip_id, info.number_free_seats, get_enum_value(info.same_gender), get_enum_value(info.luggage_size), get_enum_value(info.animal_car),
|
||||
info.car_model, info.car_brand, info.creation_date, get_enum_value(info.smoking), info.payment_method)
|
||||
info.car_model, info.car_brand, format_date(info.creation_date), get_enum_value(info.smoking), info.payment_method)
|
||||
|
||||
def _trip_headsign(self, destination):
|
||||
destination = destination.replace('(Deutschland)', '')
|
||||
|
|
|
|||
Loading…
Reference in a new issue