Add new sports with temporary pictures
This commit is contained in:
parent
f18e6adc5e
commit
e7708b9ece
@ -33,14 +33,34 @@ def init_database(app: Flask) -> None:
|
||||
sport.img = '/img/sports/mountain-biking.png'
|
||||
sport.is_default = True
|
||||
db.session.add(sport)
|
||||
sport = Sport(label='Mountain Biking (Electric)')
|
||||
sport.img = '/img/sports/electric-mountain-biking.png'
|
||||
sport.is_default = True
|
||||
db.session.add(sport)
|
||||
sport = Sport(label='Running')
|
||||
sport.img = '/img/sports/running.png'
|
||||
sport.is_default = True
|
||||
db.session.add(sport)
|
||||
sport = Sport(label='Trail')
|
||||
sport.img = '/img/sports/trail.png'
|
||||
sport.is_default = True
|
||||
db.session.add(sport)
|
||||
sport = Sport(label='Walking')
|
||||
sport.img = '/img/sports/walking.png'
|
||||
sport.is_default = True
|
||||
db.session.add(sport)
|
||||
sport = Sport(label='Skiing (Alpine)')
|
||||
sport.img = '/img/sports/alpine-skiing.png'
|
||||
sport.is_default = True
|
||||
db.session.add(sport)
|
||||
sport = Sport(label='Skiing (Cross Country)')
|
||||
sport.img = '/img/sports/cross-country-skiing.png'
|
||||
sport.is_default = True
|
||||
db.session.add(sport)
|
||||
sport = Sport(label='Rowing')
|
||||
sport.img = '/img/sports/rowing.png'
|
||||
sport.is_default = True
|
||||
db.session.add(sport)
|
||||
db.session.commit()
|
||||
_, db_app_config = init_config()
|
||||
update_app_config_from_database(app, db_app_config)
|
||||
|
BIN
fittrackee_client/public/img/sports/alpine-skiing.png
Normal file
BIN
fittrackee_client/public/img/sports/alpine-skiing.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
BIN
fittrackee_client/public/img/sports/cross-country-skiing.png
Normal file
BIN
fittrackee_client/public/img/sports/cross-country-skiing.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
BIN
fittrackee_client/public/img/sports/electric-mountain-biking.png
Normal file
BIN
fittrackee_client/public/img/sports/electric-mountain-biking.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
BIN
fittrackee_client/public/img/sports/trail.png
Normal file
BIN
fittrackee_client/public/img/sports/trail.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
Loading…
Reference in New Issue
Block a user