mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 19:48:31 +02:00
Update Journal.py
This commit is contained in:
parent
0affd5749f
commit
5aabbb7812
1 changed files with 0 additions and 2 deletions
|
@ -115,14 +115,12 @@ class Journal(object):
|
|||
|
||||
def get_date_length(myline):
|
||||
j=''
|
||||
print 'myproc line is: ' + myline
|
||||
for i in [x for x in myline.split(' ') ]:
|
||||
try:
|
||||
dateutil.parser.parse(j+' ' +i)
|
||||
j=j+' ' +i
|
||||
except:
|
||||
break
|
||||
print 'j is ' + j
|
||||
return len(j.strip())
|
||||
|
||||
# Entries start with a line that looks like 'date title' - let's figure out how
|
||||
|
|
Loading…
Add table
Reference in a new issue