This commit is contained in:
bleizi 2024-01-11 14:58:41 +01:00
parent 5dc5f56ae4
commit ab6c943126
No known key found for this signature in database
GPG Key ID: D46D7E3364433208
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# Copyright (C) 2018-2021 by BDE ENS Paris-Saclay
# Copyright (C) 2018-2024 by BDE ENS Paris-Saclay
# SPDX-License-Identifier: GPL-3.0-or-later
import datetime
@ -77,8 +77,8 @@ def get_row_class(record):
c += " table-info"
elif record.note.balance < 0:
c += " table-danger"
#MODE VIEUXCON=ON
if (datetime.datetime.utcnow().timestamp() - record.note.created_at.timestamp()) > 3600*24*365*3:
# MODE VIEUXCON=ON
if (datetime.datetime.utcnow().timestamp() - record.note.created_at.timestamp()) > 3600 * 24 * 365 * 3:
c += " font-weight-bold"
return c