Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
invisig0th committed Jan 17, 2025
1 parent 77ed8ea commit 826cff7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion synapse/models/person.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def getModelDefs(self):

('ps:vitals', ('guid', {}), {
'interfaces': ('phys:object',),
'template': {'phys:object', 'person'},
'template': {'phys:object': 'person'},
'doc': 'Statistics and demographic data about a person or contact.'}),

('ps:skill', ('guid', {}), {
Expand Down
18 changes: 9 additions & 9 deletions synapse/models/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ def getModelDefs(self):
'doc': 'A stop made by a vehicle traveling a segment.'}),

('transport:container', ('ndef', {'interface': 'transport:container'}), {
'doc': 'A segment of transportation such as a flight or train ride.'}),
'doc': 'A container capable of transporting cargo or personnel.'}),

('transport:vehicle', ('ndef', {'interface': 'transport:vehicle'}), {
'doc': 'A vehicle such as an air craft or sea vessel.'}),
'doc': 'A vehicle such as an aircraft or sea vessel.'}),

('transport:occupant', ('guid', {}), {
'doc': 'An occupant of a vehicle traveling a segment.'}),
Expand All @@ -41,9 +41,9 @@ def getModelDefs(self):
'doc': 'A type taxonomy for land vehicles.'}),

('transport:land:vehicle', ('guid', {}), {
'interfaces': ('transport:container',),
'interfaces': ('transport:vehicle',),
'template': {'phys:object': 'vehicle'},
'doc': 'An individual vehicle.'}),
'doc': 'An individual land based vehicle.'}),

('transport:land:registration', ('guid', {}), {
'doc': 'Registration issued to a contact for a land vehicle.'}),
Expand Down Expand Up @@ -188,6 +188,9 @@ def getModelDefs(self):

'props': (

('duration', ('duration', {}), {
'doc': 'The actual duration.'}),

('departed', ('time', {}), {
'doc': 'The actual departure time.'}),

Expand Down Expand Up @@ -239,9 +242,6 @@ def getModelDefs(self):
('status', ('str', {'enums': 'scheduled,cancelled,in-progress,completed,aborted,failed,unknown'}), {
'doc': 'The status of the {segment}.'}),

('duration', ('duration', {}), {
'doc': 'The actual duration.'}),

('occupants', ('int', {'min': 0}), {
'doc': 'The number of occupants of the {vehicle} on this {segment}.'}),

Expand Down Expand Up @@ -274,7 +274,7 @@ def getModelDefs(self):
'doc': 'The license ID.'}),
# TODO type ( drivers license, commercial trucking, etc? )
('contact', ('ps:contact', {}), {
'doc': 'The contact info of the registrant.'}),
'doc': 'The contact info of the licensee.'}),
('issued', ('time', {}), {
'doc': 'The time the license was issued.'}),
('expires', ('time', {}), {
Expand Down Expand Up @@ -509,7 +509,7 @@ def getModelDefs(self):
'doc': 'Contact information of the occupant.'}),

('segment', ('transport:segment', {}), {
'doc': 'The segment traveled by the ocupant.'}),
'doc': 'The segment traveled by the occupant.'}),

('vehicle', ('transport:vehicle', {}), {
'doc': 'The vehicle that transported the occupant.'}),
Expand Down

0 comments on commit 826cff7

Please sign in to comment.