Add datestamp to plant list
- Add datestamp to plant list - Change license to use similar license as other scriptstrunk
parent
dbc209543f
commit
bad8ddf3ca
|
@ -20,4 +20,4 @@ wilty water Water a random plant.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
MIT (c) 2019 mio
|
BSD
|
||||||
|
|
2
wilty.py
2
wilty.py
|
@ -202,6 +202,8 @@ class Wilty():
|
||||||
sort_l.sort(key=lambda c: c[3], reverse=True)
|
sort_l.sort(key=lambda c: c[3], reverse=True)
|
||||||
# Format output
|
# Format output
|
||||||
print(self.border)
|
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("{:<20s}{:<15s}{:<15s}".format("User", "Plant", "Last Watered"))
|
||||||
print(self.border)
|
print(self.border)
|
||||||
for i in sort_l:
|
for i in sort_l:
|
||||||
|
|
Loading…
Reference in New Issue