Add script for reviewing previous years’ activities
parent
3d283da0f7
commit
e6043132f8
@ -0,0 +1,19 @@
|
||||
import datetime,os
|
||||
|
||||
year = int(datetime.datetime.strftime(datetime.datetime.today(),"%Y"))
|
||||
monthstring = datetime.datetime.strftime(datetime.datetime.today(),"%m")
|
||||
datestring = datetime.datetime.strftime(datetime.datetime.today(),"%d")
|
||||
|
||||
fileplace = "/home/mdd/Documents/drive/org/journal/"
|
||||
|
||||
thisyear = year
|
||||
|
||||
while year > 1993:
|
||||
year -= 1
|
||||
target = fileplace + str(year) + "/" + monthstring + "/" + str(year) + "-" + monthstring + "-" + datestring + ".org"
|
||||
if os.path.exists(target):
|
||||
if year < thisyear -1:
|
||||
print("Press enter to continue")
|
||||
input()
|
||||
print(open(target,"r").read())
|
||||
|
Loading…
Reference in New Issue