1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Make Google Spreadsheet widget work with new module lazy-loading

This commit is contained in:
Chris Cummer
2018-06-08 15:57:22 -07:00
parent 60d41266cd
commit e319ab69e7
2 changed files with 5 additions and 7 deletions

View File

@@ -3,8 +3,8 @@ package gspreadsheets
import (
"fmt"
"github.com/senorprogrammer/wtf/wtf"
"github.com/olebedev/config"
"github.com/senorprogrammer/wtf/wtf"
sheets "google.golang.org/api/sheets/v4"
)
@@ -26,10 +26,6 @@ func NewWidget() *Widget {
/* -------------------- Exported Functions -------------------- */
func (widget *Widget) Refresh() {
if widget.Disabled() {
return
}
cells, _ := Fetch()
widget.UpdateRefreshedAt()