Compare commits
No commits in common. "52947b898e17cf92ef3e60e63bff8cc3a16b8c06" and "682c04ca796c8e2224f2e3ce073c5daa6ee274cf" have entirely different histories.
52947b898e
...
682c04ca79
13
model.go
13
model.go
@ -391,9 +391,12 @@ type miteDataFetchedMsg struct {
|
||||
|
||||
func (m model) fetchMiteData() tea.Cmd {
|
||||
return func() tea.Msg {
|
||||
from := time.Now().Add(-time.Hour * 24 * 30 * 6) // about 6 months
|
||||
to := time.Now().Add(time.Hour * 20 * 30) // about 1 month
|
||||
te, err1 := m.miteAPI.GetTimeEntries(from, to)
|
||||
// time.Sleep(time.Second * 5)
|
||||
loc := time.Local
|
||||
te, err1 := m.miteAPI.GetTimeEntries(
|
||||
time.Date(2024, time.January, 1, 0, 0, 0, 0, loc),
|
||||
time.Date(2025, time.December, 31, 0, 0, 0, 0, loc),
|
||||
)
|
||||
cst, err2 := m.miteAPI.GetCustomers()
|
||||
svc, err3 := m.miteAPI.GetServices()
|
||||
pjt, err4 := m.miteAPI.GetProjects()
|
||||
@ -472,8 +475,8 @@ func (m model) View() string {
|
||||
|
||||
sofar := lipgloss.Height(out)
|
||||
|
||||
statusMsg := strings.ReplaceAll(m.statusBarMessage, "\n", " ")
|
||||
out += styleStatusBar.MarginTop(19 - sofar).Width(m.windowWidth).Render(statusMsg)
|
||||
out +=
|
||||
styleStatusBar.MarginTop(19 - sofar).Width(m.windowWidth).Render(m.statusBarMessage)
|
||||
|
||||
return out
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user