scouting: Fix style in some flatbuffer files
We're currently seeing warnings like this when compiling the
flatbuffer files:
warning:
/home/jenkins/repos/971-Robot-Code-2/scouting/webserver/requests/messages/request_shift_schedule_response.fbs:5: 13: warning: field names should be lowercase snake_case, got: R1scouter
/home/jenkins/repos/971-Robot-Code-2/scouting/webserver/requests/messages/request_shift_schedule_response.fbs:6: 13: warning: field names should be lowercase snake_case, got: R2scouter
/home/jenkins/repos/971-Robot-Code-2/scouting/webserver/requests/messages/request_shift_schedule_response.fbs:7: 13: warning: field names should be lowercase snake_case, got: R3scouter
/home/jenkins/repos/971-Robot-Code-2/scouting/webserver/requests/messages/request_shift_schedule_response.fbs:8: 13: warning: field names should be lowercase snake_case, got: B1scouter
/home/jenkins/repos/971-Robot-Code-2/scouting/webserver/requests/messages/request_shift_schedule_response.fbs:9: 13: warning: field names should be lowercase snake_case, got: B2scouter
/home/jenkins/repos/971-Robot-Code-2/scouting/webserver/requests/messages/request_shift_schedule_response.fbs:10: 13: warning: field names should be lowercase snake_case, got: B3scouter
Those warnings are annoying so this patch fixes them.
There are no functional changes.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I0370dfaf6cabd34b646de74c55f6bfa3992ee453
diff --git a/scouting/webserver/requests/requests.go b/scouting/webserver/requests/requests.go
index 86a09d1..4950999 100644
--- a/scouting/webserver/requests/requests.go
+++ b/scouting/webserver/requests/requests.go
@@ -628,12 +628,12 @@
for _, shifts := range shiftData {
response.ShiftSchedule = append(response.ShiftSchedule, &request_shift_schedule_response.MatchAssignmentT{
MatchNumber: shifts.MatchNumber,
- R1scouter: shifts.R1scouter,
- R2scouter: shifts.R2scouter,
- R3scouter: shifts.R3scouter,
- B1scouter: shifts.B1scouter,
- B2scouter: shifts.B2scouter,
- B3scouter: shifts.B3scouter,
+ R1Scouter: shifts.R1scouter,
+ R2Scouter: shifts.R2scouter,
+ R3Scouter: shifts.R3scouter,
+ B1Scouter: shifts.B1scouter,
+ B2Scouter: shifts.B2scouter,
+ B3Scouter: shifts.B3scouter,
})
}
@@ -668,12 +668,12 @@
request.ShiftSchedule(&match_assignment, i)
current_shift := db.Shift{
MatchNumber: match_assignment.MatchNumber(),
- R1scouter: string(match_assignment.R1scouter()),
- R2scouter: string(match_assignment.R2scouter()),
- R3scouter: string(match_assignment.R3scouter()),
- B1scouter: string(match_assignment.B1scouter()),
- B2scouter: string(match_assignment.B2scouter()),
- B3scouter: string(match_assignment.B3scouter()),
+ R1scouter: string(match_assignment.R1Scouter()),
+ R2scouter: string(match_assignment.R2Scouter()),
+ R3scouter: string(match_assignment.R3Scouter()),
+ B1scouter: string(match_assignment.B1Scouter()),
+ B2scouter: string(match_assignment.B2Scouter()),
+ B3scouter: string(match_assignment.B3Scouter()),
}
err = handler.db.AddToShift(current_shift)
if err != nil {