Commit 6943506f authored by mathieui's avatar mathieui

Merge branch 'display-today-history-without-date' into 'master'

Do not add the date in history messages from the current day

See merge request !126
parents ec6c1bf8 8462711f
Pipeline #3203 passed with stages
in 6 minutes and 42 seconds
import curses
from datetime import datetime
from datetime import (
datetime,
date,
)
from functools import singledispatch
from math import ceil, log10
from typing import (
......@@ -235,7 +238,7 @@ class PreMessageHelpers:
Write the date on the yth line of the window
"""
if time:
if history:
if history and time.date() != date.today():
format = LONG_FORMAT
else:
format = SHORT_FORMAT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment