New: - Added the possibility to insert custom items on receipt upload in case the receipt couldn't be read. Changes: - Changed the display of the sum at the overview. You now see what you owe your establishment instead of just seeing how much you bought. - In addition the sum in the overview now accounts for membership time. You don't have to pay for something bought after you moved out for example.
13 lines
579 B
Python
13 lines
579 B
Python
from src import db
|
|
|
|
class LoginTokenDates(db.Model):
|
|
token = db.Column(db.ForeignKey('login_token.token'),
|
|
nullable = False, primary_key=True,
|
|
server_onupdate=db.FetchedValue())
|
|
activation_date = db.Column(db.Date,
|
|
nullable=False, primary_key=True,
|
|
server_default=db.func.now())
|
|
deactivation_date = db.Column(db.Date, nullable=True)
|
|
|
|
def __repr__(self) -> str:
|
|
return f"<LoginTokenDates {self.token, self.activation_date, self.deactivation_date}>" |