Skip to content

Commit

Permalink
[MODIFY] #72 Add the outing_id in responses
Browse files Browse the repository at this point in the history
  • Loading branch information
mallycrip committed Dec 5, 2020
1 parent da20137 commit 69c8144
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions service/mapper/student_outing_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def get_student_outings_mapper(self, outings: List["Outing"], start: int, end: i
for outing in outings[start:end]:
outing_proto = StudentOuting()

outing_proto.outing_id = outing.outing_uuid
outing_proto.place = outing.place
outing_proto.reason = outing.reason
outing_proto.start_time = int(time.mktime(outing.start_time.timetuple()))
Expand Down
1 change: 1 addition & 0 deletions service/student_outing_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def get_outing_inform(self, request: proto.GetOutingInformRequest, context):
return proto.GetOutingInformResponse(
status=200,

outing_id=outing.outing_uuid,
place=outing.place,
reason=outing.reason,
start_time=int(mktime(outing.start_time.timetuple())),
Expand Down

0 comments on commit 69c8144

Please sign in to comment.