Skip to content

Commit

Permalink
remove float32 datatype and rearrange fields
Browse files Browse the repository at this point in the history
  • Loading branch information
shalearkane committed May 25, 2024
1 parent c91aa42 commit a16583d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion constants/datatypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const (
TYPE_BOOL = "bool"
TYPE_STRING = "string"
TYPE_INTEGER = "int"
TYPE_FLOAT32 = "float32"
TYPE_FLOAT64 = "float64"

// complex
Expand Down
2 changes: 1 addition & 1 deletion controller/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func AssignNilPossibleValue[V int | float64 | string | constantModel.Course | co
if !field.IsNull {
field.Value = **value
}
field.DataType = fmt.Sprintf("%v", reflect.TypeOf(*value))
field.DataType = fmt.Sprintf("%v", reflect.TypeOf(*value))[1:]
return
}

Expand Down
2 changes: 1 addition & 1 deletion interfaces/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ type ProfileSummerTermSPI struct {
}

type ProfileCurrentAcademics struct {
Misc ProfileCurrentAcademicsMisc `json:"misc,omitempty"`
SemesterSPI ProfileSemesterSPI `json:"semester_spi,omitempty"`
SummerTermSPI ProfileSummerTermSPI `json:"summer_term_spi,omitempty"`
Misc ProfileCurrentAcademicsMisc `json:"misc,omitempty"`
}

type StudentProfile struct {
Expand Down

0 comments on commit a16583d

Please sign in to comment.