Skip to content

Commit

Permalink
Merge pull request #12 from TransitApp/dont_introduce_default_0s
Browse files Browse the repository at this point in the history
dont put default value on optional fields
  • Loading branch information
JMilot1 authored Oct 25, 2022
2 parents f57fac9 + 5665bcd commit 443f335
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions gtfs_loader/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ class BookingRule(Entity):

booking_rule_id: str
booking_type: BookingType
prior_notice_duration_min: int = 0
prior_notice_duration_max: int = 0
prior_notice_last_day: int = 0
prior_notice_duration_min: Optional[int] = None
prior_notice_duration_max: Optional[int] = None
prior_notice_last_day: Optional[int] = None
prior_notice_last_time: GTFSTime = GTFSTime('')
prior_notice_start_day: int = 0
prior_notice_start_day: Optional[int] = None
prior_notice_start_time: GTFSTime = GTFSTime('')
prior_notice_service_id: str = ''
message: str = ''
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages

setup(name='py-gtfs-loader',
version='0.1.5',
version='0.1.6',
description='Load GTFS',
url='https://github.com/TransitApp/py-gtfs-loader',
author='Nicholas Paun, Jonathan Milot',
Expand Down

0 comments on commit 443f335

Please sign in to comment.