Giter Club home page Giter Club logo

Comments (14)

jovandeginste avatar jovandeginste commented on May 21, 2024

Could you verify whether you are using the latest release?

from workout-tracker.

gitjax avatar gitjax commented on May 21, 2024

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.

jovandeginste avatar jovandeginste commented on May 21, 2024

That was the version I was testing with. Maybe something with new users not properly saving a profile..

from workout-tracker.

gitjax avatar gitjax commented on May 21, 2024

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.

gitjax avatar gitjax commented on May 21, 2024

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.

jovandeginste avatar jovandeginste commented on May 21, 2024

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.

gitjax avatar gitjax commented on May 21, 2024

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.

jovandeginste avatar jovandeginste commented on May 21, 2024

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.

gitjax avatar gitjax commented on May 21, 2024

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.

jovandeginste avatar jovandeginste commented on May 21, 2024

Please try that; I will however see what causes the issue.

from workout-tracker.

gitjax avatar gitjax commented on May 21, 2024

:-) 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.

gitjax avatar gitjax commented on May 21, 2024

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.

gitjax avatar gitjax commented on May 21, 2024

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.

jovandeginste avatar jovandeginste commented on May 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.