ayoisaiah / focus

A fully featured productivity timer for the command line, based on the Pomodoro Technique. Supports Linux, Windows, and macOS.
https://github.com/ayoisaiah/focus
MIT License
437 stars 21 forks source link

Focus Statistics empty: cannot execute script.js #40

Open AngeloThys opened 7 months ago

AngeloThys commented 7 months ago

Tick this box to confirm you have reviewed the above.

What version of Focus are you using?

focus v1.4.2 focus v1.4.3

How did you install Focus?

I've tried with both the debian package release: focus_1.4.3_linux_amd64.deb And with the go installation: go install github.com/ayoisaiah/focus/cmd/focus@latest

What operating system are you using Focus on?

Pop!_OS 22.04 LTS x86_64 (Ubuntu based)

What is your Focus configuration?

Describe your bug.

Focus Statistics does not show my statistics.

What are the steps to reproduce the behavior?

I run:

focus stats

Open localhost:1111 in the browser and get this:

image

What behaviour did you observe?

Focus Statistics does not show my statistics. Possibly has to do with:

image

What is the expected behaviour?

Focus Statistics showing me my statistics

ayoisaiah commented 7 months ago

@AngeloThys Thanks a lot for reporting this. I've reproduced it and will provide a fix shortly

cristina-leon commented 2 weeks ago

I'm running Focus version v1.4.2, installed with go install github.com/ayoisaiah/focus/cmd/focus@latest on MacOS Sonoma 14.6.1. When I run focus stats I get the exact same problem.