refactor True check

This commit is contained in:
Son NK 2024-04-09 13:54:06 +02:00
parent 1c6dab3c86
commit 57cd1452b0

View File

@ -1070,7 +1070,7 @@ def get_alias_to_check_hibp(
Alias.id >= min_alias_id, Alias.id >= min_alias_id,
Alias.id < max_alias_id, Alias.id < max_alias_id,
User.disabled == False, # noqa: E712 User.disabled == False, # noqa: E712
User.enable_data_breach_check == True, User.enable_data_breach_check,
or_( or_(
User.lifetime, User.lifetime,
ManualSubscription.end_at > now, ManualSubscription.end_at > now,