I have a model:
class IceCream(db.Model):
flavor = db.Column(db.Integer, default=2)
licks = 0
def update_licks(self):
self.licks += 1
My goal is that I have some variables that are stored in the database, and others that aren't. However, licks keeps resetting to 0 every time I load the object. How can I fix this so the variable doesn't reset while the server is running?