From 55e9e13422a7a5ee4650597e86ac8629de83c383 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Mon, 5 May 2025 09:27:02 +0300 Subject: Fix "C0301: Line too long" pylint error. Signed-off-by: Munyoki Kilyungi --- gn_auth/auth/authorisation/users/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gn_auth') diff --git a/gn_auth/auth/authorisation/users/views.py b/gn_auth/auth/authorisation/users/views.py index 6183388..f8ccdbe 100644 --- a/gn_auth/auth/authorisation/users/views.py +++ b/gn_auth/auth/authorisation/users/views.py @@ -130,7 +130,8 @@ def display_minutes_for_humans(minutes): if _remainder_ >= _day_: _days_ = _remainder_ // _day_ _remainder_ = _remainder_ % _day_ - _human_readable_ += (" " if bool(_human_readable_) else "") + f"{_days_} day" + ("s" if _days_ > 1 else "") + _human_readable_ += (" " if bool(_human_readable_) else "") + \ + f"{_days_} day" + ("s" if _days_ > 1 else "") if _remainder_ > 0: _human_readable_ += (" " if bool(_human_readable_) else "") + f"{_remainder_} minutes" -- cgit v1.2.3