mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-21 06:56:54 +02:00
adjust line length
This commit is contained in:
parent
23734f49d2
commit
a16f14d9e3
|
@ -36,7 +36,8 @@ class WarrantiesTable(CoreTable):
|
|||
|
||||
def render_valid_until(self, value, column):
|
||||
today = datetime.date(datetime.today())
|
||||
one_year_from_today = (datetime.date(datetime.today() + timedelta(365)))
|
||||
one_year_from_today = (datetime.date(datetime.today()
|
||||
+ timedelta(365)))
|
||||
|
||||
if value > one_year_from_today:
|
||||
column.attrs = {'td': {}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user