Compare commits

..

No commits in common. "52947b898e17cf92ef3e60e63bff8cc3a16b8c06" and "682c04ca796c8e2224f2e3ce073c5daa6ee274cf" have entirely different histories.

View File

@ -391,9 +391,12 @@ type miteDataFetchedMsg struct {
func (m model) fetchMiteData() tea.Cmd { func (m model) fetchMiteData() tea.Cmd {
return func() tea.Msg { return func() tea.Msg {
from := time.Now().Add(-time.Hour * 24 * 30 * 6) // about 6 months // time.Sleep(time.Second * 5)
to := time.Now().Add(time.Hour * 20 * 30) // about 1 month loc := time.Local
te, err1 := m.miteAPI.GetTimeEntries(from, to) 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() cst, err2 := m.miteAPI.GetCustomers()
svc, err3 := m.miteAPI.GetServices() svc, err3 := m.miteAPI.GetServices()
pjt, err4 := m.miteAPI.GetProjects() pjt, err4 := m.miteAPI.GetProjects()
@ -472,8 +475,8 @@ func (m model) View() string {
sofar := lipgloss.Height(out) sofar := lipgloss.Height(out)
statusMsg := strings.ReplaceAll(m.statusBarMessage, "\n", " ") out +=
out += styleStatusBar.MarginTop(19 - sofar).Width(m.windowWidth).Render(statusMsg) styleStatusBar.MarginTop(19 - sofar).Width(m.windowWidth).Render(m.statusBarMessage)
return out return out
} }