mirror of https://gitlab.crans.org/bde/nk20
linters
This commit is contained in:
parent
5dc5f56ae4
commit
ab6c943126
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue