Skip to content

Commit

Permalink
fix the multi calculation in the call info
Browse files Browse the repository at this point in the history
  • Loading branch information
ftl committed Oct 8, 2023
1 parent 466826a commit 36c444a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/callinfo/callinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (c *Callinfo) GetInfo(call callsign.Callsign, band core.Band, mode core.Mod
filteredExchange := c.exchangeFilter.FilterExchange(result.PredictedExchange)
result.ExchangeText = strings.Join(filteredExchange, " ")

result.Points, result.Multis, result.MultiValues = c.valuer.Value(call, entity, band, mode, exchange)
result.Points, result.Multis, result.MultiValues = c.valuer.Value(call, entity, band, mode, result.PredictedExchange)

return result
}
Expand Down Expand Up @@ -198,7 +198,9 @@ func (c *Callinfo) GetValue(call callsign.Callsign, band core.Band, mode core.Mo
if !found {
return 0, 0, nil
}
return c.valuer.Value(call, entity, band, mode, exchange)
callinfo := c.GetInfo(call, band, mode, exchange)

return c.valuer.Value(call, entity, band, mode, callinfo.PredictedExchange)
}

func (c *Callinfo) findDXCCEntity(call string) (dxcc.Prefix, bool) {
Expand Down

0 comments on commit 36c444a

Please sign in to comment.