Add datestamp to plant list

- Add datestamp to plant list
- Change license to use similar license as other scripts
trunk
mio 2020-11-09 17:07:19 +00:00
parent dbc209543f
commit bad8ddf3ca
2 changed files with 3 additions and 1 deletions

View File

@ -20,4 +20,4 @@ wilty water Water a random plant.
## License
MIT (c) 2019 mio
BSD

View File

@ -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: