Update main with lead day pathc
This commit is contained in:
parent
5814eb5fc1
commit
926ca2ffaf
4
main.go
4
main.go
@ -95,8 +95,8 @@ func currentTool() (tool,error) {
|
|||||||
var currentweek int
|
var currentweek int
|
||||||
|
|
||||||
//Calculate current week
|
//Calculate current week
|
||||||
currenttime := time.Now().Unix() - 345600
|
currenttime := int(time.Now().Unix()) - 345600
|
||||||
currentweek = int(currenttime/604800)
|
currentweek = currenttime/604800
|
||||||
fmt.Println(currentweek)
|
fmt.Println(currentweek)
|
||||||
|
|
||||||
//Select current tool from database
|
//Select current tool from database
|
||||||
|
Loading…
Reference in New Issue
Block a user