fix: linter

This commit is contained in:
Yansong Zhang
2025-10-13 14:53:20 +08:00
parent b95f4822c3
commit 7a6bf12453
4 changed files with 17 additions and 14 deletions

View File

@ -91,6 +91,8 @@ def trial_app_required(view: Callable[Concatenate[App, P], R] | None = None):
if app is None:
raise TrialAppNotAllowed()
assert isinstance(current_user, Account)
account_trial_app_record = (
db.session.query(AccountTrialAppRecord)
.where(AccountTrialAppRecord.account_id == current_user.id, AccountTrialAppRecord.app_id == app_id)