Skip to content

Commit

Permalink
translate variable names into english
Browse files Browse the repository at this point in the history
  • Loading branch information
Ismail731404 committed Dec 5, 2023
1 parent 5e1325b commit 3f9bbd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions internals/history/fact_history_querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type GetFactHistory struct {

type FactResult struct {
Value int64 `json:"value"`
FormattedTime string `json:"formattedTime" example:"2006-01-02 15:04:05"`
FormattedTime string `json:"formattedTime" example:"2006-01-02 15:04:05"`
}

type ParamGetFactHistory struct {
Expand Down Expand Up @@ -245,12 +245,12 @@ func (querier *HistoryFactsQuerier) QueryGetSpecificFields(builder sq.SelectBuil

func (querier HistoryFactsQuerier) GetTodaysFactResultByParameters(param ParamGetFactHistory) (GetFactHistory, error) {
builder := querier.Builder.GetTodaysFactResultByParameters(param)
return querier.QueryGetSpecificFields(builder, FormatHeureMinute)
return querier.QueryGetSpecificFields(builder, FormatHourMinute)
}

func (querier HistoryFactsQuerier) GetFactResultByDate(param ParamGetFactHistoryByDate) (GetFactHistory, error) {
builder := querier.Builder.GetFactResultByDate(param)
return querier.QueryGetSpecificFields(builder, FormatDateHeureMinute)
return querier.QueryGetSpecificFields(builder, FormatDateHourMinute)
}

func (querier HistoryFactsQuerier) Delete(ID int64) error {
Expand Down
4 changes: 2 additions & 2 deletions internals/history/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
)

const (
FormatHeureMinute = "15:04" // FormatHeureMinute specifies the format for hour and minutes
FormatDateHeureMinute = "2006-01-02 15:04" // FormatDateHeureMinuteSeconde specifies the format for date, hour, minutes, and seconds
FormatHourMinute = "15:04" // FormatHeureMinute specifies the format for hour and minutes
FormatDateHourMinute = "2006-01-02 15:04" // FormatDateHeureMinuteSeconde specifies the format for date, hour, minutes, and seconds
)

func ExtractHistoryDataSearch(historySituations []HistorySituationsV4, historySituationFacts []HistorySituationFactsV4, historyFacts []HistoryFactsV4) search.QueryResult {
Expand Down

0 comments on commit 3f9bbd3

Please sign in to comment.