From bad8ddf3ca324457709cd06a417da7a25ddd6856 Mon Sep 17 00:00:00 2001 From: mio Date: Mon, 9 Nov 2020 17:07:19 +0000 Subject: [PATCH] Add datestamp to plant list - Add datestamp to plant list - Change license to use similar license as other scripts --- README.md | 2 +- wilty.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 16ee4d2..42e70d5 100644 --- a/README.md +++ b/README.md @@ -20,4 +20,4 @@ wilty water Water a random plant. ## License -MIT (c) 2019 mio +BSD diff --git a/wilty.py b/wilty.py index c670b59..3dedd71 100644 --- a/wilty.py +++ b/wilty.py @@ -202,6 +202,8 @@ class Wilty(): sort_l.sort(key=lambda c: c[3], reverse=True) # Format output print(self.border) + print(time.strftime("Date: (%a) %Y-%m-%d %H:%M:%S")) + print(self.border) print("{:<20s}{:<15s}{:<15s}".format("User", "Plant", "Last Watered")) print(self.border) for i in sort_l: