Comments (14)
Could you verify whether you are using the latest release?
from workout-tracker.
I followed the instructions and installed ghcr.io/jovandeginste/workout-tracker:master. At the bottom of the webinterface I have "Workout Tracker, branch master (179acb7)". Should I be using a different tag?
from workout-tracker.
That was the version I was testing with. Maybe something with new users not properly saving a profile..
from workout-tracker.
Is that something that is saved in the filesystem? The only thing mounted into the container from the host is a directory - /data .. where all I find is "database.db". Is that what is expected?
from workout-tracker.
When I click "update profile" and tail the log at the same time I notice:
cbaf8f9273d588a","module":"webserver","request":{"time":"2024-04-08T11:21:27.606237054Z","method":"POST","host":"REDACTED","path":"/user/profile","query":"","params":{},"route":"/user/profile","ip":"REDACTED","referer":"https://REDACTED/user/profile","length":82},"response":{"time":"2024-04-08T11:21:27.845501233Z","latency":239264296,"status":302,"length":0}}
...that 302 probably has something to do with this?
from workout-tracker.
The profile is saved in the database, so that is expected. The 302 is normal, because a save (update) is a "post" which then redirects to the profile view (a get). You could open the database with sqlite and check what's in the profiles table:
sqlite3 database.db 'select * from profiles;'
from workout-tracker.
Then I get:
1|2024-04-06 15:07:37.76620996+00:00|2024-04-06 15:07:37.76620996+00:00||0|0|en|running|Europe/Amsterdam|
2|2024-04-06 15:08:53.838483602+00:00|2024-04-06 15:08:53.838483602+00:00||0|0|browser|running|Europe/Brussels|
3|2024-04-06 15:09:25.659210822+00:00|2024-04-06 15:09:25.659210822+00:00||0|0|en|running|Europe/Amsterdam|
4|2024-04-08 11:21:27.641886755+00:00|2024-04-08 11:21:27.641886755+00:00||0|0|en|running|Europe/Amsterdam|
from workout-tracker.
And when you filter for your user:
sqlite3 database.db "select * from profiles where user_id = (select id from users where username='YOUR USERNAME');"
from workout-tracker.
right, that gives me no output at all. Right after installing - if I recall correctly - I just changed the username of "admin" (which I believe was there by default) to "jax." If I now do
sqlite3 database.db "select * from profiles where user_id = (select id from users where username='jax');"
...I get nothing... Should I try creating a new user?
from workout-tracker.
Please try that; I will however see what causes the issue.
from workout-tracker.
:-) incidentally, I cannot find a "create user" on the "Manage users" page ... so not sure how to go about creating another user.
I've never poked at sqlite-files before but I managed to figure out that there is a "users" table, where my user "jax" seems to be defined.
from workout-tracker.
For what it's worth I had
WT_REGISTRATION_DISABLED=true
..I tried changing it to false but same behaviour. .. cannot "save" profile settings for my user.
from workout-tracker.
Aha! ...So I set REGISTRATION_DISABLED to false, then:
- Under "create new account" created a new user (which is not "enabled"
- logged in as original user and "enabled" the new user
- logged out
- logged in as new user
...and now, as that new user, I could save settings under user profile. So it works if I dont user the original "admin" account
from workout-tracker.
It may be an issue when the admin user is auto-created - no associated profile exists for that user and thus changes are dropped...
from workout-tracker.
Related Issues (20)
- Add imperial units to statistics and workout breakdown partials
- Download Workout no longer working HOT 2
- [Feature Request] List duplicate start times / reject an import if duplicate start time exists. HOT 5
- After upgraded DB workout needs to manually refreshed HOT 4
- Average Speed wrong calculated within Statistics View HOT 3
- Error processing .fit file HOT 3
- Support for ulogger
- [Bug] Viewing "Other Users" partially renders your Dashboard & not theirs. HOT 1
- Option to show actual date instead of relative from current time HOT 3
- Total statistics are empty HOT 5
- Import from csv HOT 3
- Add equipment HOT 2
- docker image as non-root user HOT 4
- Graphs for performance data: heart rate, cadence etc stats HOT 5
- Error when enabling API access: constraint failed: UNIQUE constraint failed: profiles.id (1555) HOT 2
- Feature request: Stationary workouts HOT 1
- Bug: Graphing error on GPX imported via FitoTrack API HOT 2
- Worker started every secondes HOT 5
- Other Exercises HOT 1
- Location unknown for some gpx files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from workout-tracker.