File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -611,7 +611,23 @@ def init_db() -> None: # initialize database
611611 text ("ALTER TABLE user ADD COLUMN rating FLOAT NOT NULL DEFAULT 0" )
612612 ) # create rating score column
613613 if User .query .count () == 0 : # if there are no users
614- new_user = User (username = "Player" ) # create new user
614+ new_user = User (
615+ username = "Player" ,
616+ xp = 0 ,
617+ xp_required = 1 ,
618+ total_xp = 0 ,
619+ level = 1 ,
620+ tasks_completed = 0 ,
621+ last_completion_date = func .current_date (),
622+ daily_streak = 0 ,
623+ daily_tasks_completed = 0 ,
624+ days_completed = 0 ,
625+ combo_multiplier = 0 ,
626+ last_task_completed = - 1 ,
627+ last_time_clicked = func .current_timestamp (),
628+ time_multiplier = 1 ,
629+ rating = 0 ,
630+ ) # create new user
615631 db .session .add (new_user ) # add new user to the database
616632 db .session .commit () # commit database changes
617633 if "original_due_date" not in [
You can’t perform that action at this time.
0 commit comments