Skip to content

Commit 04b5076

Browse files
committed
Add parameter declaration in docstrings
1 parent 7462a10 commit 04b5076

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class User(db.Model): # user class
2626
def add_xp(self, amount): # add XP
2727
"""
2828
Add XP (experience points) to the user.
29+
amount - the amount to add XP.
2930
"""
3031
self.xp += amount # add XP by amount
3132
self.total_xp += amount # add total XP by amount
@@ -55,6 +56,7 @@ def get_level_progress(self): # get level progress
5556
def short_numeric_filter(value): # get number in short numeric form with abbreviations
5657
"""
5758
Get the abbreviated numeric value.
59+
value - the numeric value to convert.
5860
"""
5961
units = [
6062
"",

0 commit comments

Comments
 (0)