mirror of
https://codeberg.org/hyperreal/daily-event-logger
synced 2024-11-25 11:53:42 +01:00
Use Christmas colors
This commit is contained in:
parent
5869a9e778
commit
9c52f72181
@ -1 +1 @@
|
|||||||
__version__ = '0.1.3'
|
__version__ = '0.1.4'
|
||||||
|
@ -17,7 +17,7 @@ from rich.traceback import install
|
|||||||
|
|
||||||
install(show_locals=True)
|
install(show_locals=True)
|
||||||
|
|
||||||
VERSION = "0.1.3"
|
VERSION = "0.1.4"
|
||||||
|
|
||||||
default_date = dt.date.today().strftime("%Y-%m-%d")
|
default_date = dt.date.today().strftime("%Y-%m-%d")
|
||||||
ELOG_DIR = os.getenv("ELOG_DIR")
|
ELOG_DIR = os.getenv("ELOG_DIR")
|
||||||
@ -74,10 +74,10 @@ def elog_list(args):
|
|||||||
with open(selected_elog_file, "r") as ef:
|
with open(selected_elog_file, "r") as ef:
|
||||||
json_data = json.load(ef)
|
json_data = json.load(ef)
|
||||||
|
|
||||||
table = Table(style="#84562c", header_style="bold", box=box.ROUNDED)
|
table = Table(style="green", header_style="bold", box=box.ROUNDED)
|
||||||
table.add_column("Index", justify="right", style="#fb4934")
|
table.add_column("Index", justify="right", style="white")
|
||||||
table.add_column("Timestamp", justify="left", style="#d62b00")
|
table.add_column("Timestamp", justify="left", style="red")
|
||||||
table.add_column("Message", justify="left", style="#e3d499")
|
table.add_column("Message", justify="left")
|
||||||
|
|
||||||
for i in range(len(json_data)):
|
for i in range(len(json_data)):
|
||||||
if json_data[i]["timestamp"] > ts_from and json_data[i]["timestamp"] < ts_to:
|
if json_data[i]["timestamp"] > ts_from and json_data[i]["timestamp"] < ts_to:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "daily-event-logger"
|
name = "daily-event-logger"
|
||||||
version = "0.1.3"
|
version = "0.1.4"
|
||||||
description = "A utility for logging daily tasks and events."
|
description = "A utility for logging daily tasks and events."
|
||||||
authors = ["Jeffrey Serio <hyperreal@fedoraproject.org>"]
|
authors = ["Jeffrey Serio <hyperreal@fedoraproject.org>"]
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
|
Loading…
Reference in New Issue
Block a user