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
|
||||
|
||||
//Calculate current week
|
||||
currenttime := time.Now().Unix() - 345600
|
||||
currentweek = int(currenttime/604800)
|
||||
currenttime := int(time.Now().Unix()) - 345600
|
||||
currentweek = currenttime/604800
|
||||
fmt.Println(currentweek)
|
||||
|
||||
//Select current tool from database
|
||||
|
Loading…
Reference in New Issue
Block a user