We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7462a10 commit 04b5076Copy full SHA for 04b5076
app.py
@@ -26,6 +26,7 @@ class User(db.Model): # user class
26
def add_xp(self, amount): # add XP
27
"""
28
Add XP (experience points) to the user.
29
+ amount - the amount to add XP.
30
31
self.xp += amount # add XP by amount
32
self.total_xp += amount # add total XP by amount
@@ -55,6 +56,7 @@ def get_level_progress(self): # get level progress
55
56
def short_numeric_filter(value): # get number in short numeric form with abbreviations
57
58
Get the abbreviated numeric value.
59
+ value - the numeric value to convert.
60
61
units = [
62
"",
0 commit comments