Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new sport #466

Closed
DavidHenryThoreau opened this issue Dec 14, 2023 · 3 comments
Closed

Add new sport #466

DavidHenryThoreau opened this issue Dec 14, 2023 · 3 comments

Comments

@DavidHenryThoreau
Copy link
Contributor

Can you let user add new sport, (example musculation) ?

@SamR1
Copy link
Owner

SamR1 commented Dec 16, 2023

Hi,

For now it's not possible for users to add their own sports.


duplicate of #364
additional comment on #391 (comment)

@SamR1 SamR1 closed this as completed Dec 16, 2023
@DavidHenryThoreau
Copy link
Contributor Author

I've inserted a new line in sport table :

fittrackee=# INSERT INTO sports (id,label,is_active,stopped_speed_threshold) VALUES (55,'Renforcement',true,0.1);
INSERT 0 1

fittrackee=# select * from sports where id=55;
 id |    label     | is_active | stopped_speed_threshold
----+--------------+-----------+-------------------------
 55 | Renforcement | t         |                     0.1
(1 row)

In the web interface in the importing new workout page I'm getting :
sport.Renforcement.value how can I rename to 'Renforcement' as it's in the database ?
Is that a good way to create new sport directly in the database like this ?

@SamR1
Copy link
Owner

SamR1 commented May 29, 2024

Hi,

It's not possible to create sports only in the database (see #364 (comment)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants