Skip to content

Commit 6f57400

Browse files
committed
Fix grammar
1 parent 3723654 commit 6f57400

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ def init_db(): # initialize database
133133
"""
134134
with app.app_context():
135135
db.create_all() # create tables if they don't exist
136-
if User.query.count() == 0: # if there is no user in database
136+
if User.query.count() == 0: # if there is no user in the database
137137
new_user = User(username="Player") # add user with name 'Player'
138-
db.session.add(new_user) # add new user to database
138+
db.session.add(new_user) # add new user to the database
139139
db.session.commit() # commit database changes
140140

141141

schema.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ create table
33
id integer primary key autoincrement, --user id
44
username text not null unique, --username
55
xp float default 0, --current user XP
6-
xp_required float default 1, --user required XP to reach next level
6+
xp_required float default 1, --user required XP to reach the next level
77
total_xp float default 0, --user total XP earned
88
level integer default 1 --current user level
99
);

0 commit comments

Comments
 (0)