mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-18 12:08: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):
|
def get_date_length(myline):
|
||||||
j=''
|
j=''
|
||||||
print 'myproc line is: ' + myline
|
|
||||||
for i in [x for x in myline.split(' ') ]:
|
for i in [x for x in myline.split(' ') ]:
|
||||||
try:
|
try:
|
||||||
dateutil.parser.parse(j+' ' +i)
|
dateutil.parser.parse(j+' ' +i)
|
||||||
j=j+' ' +i
|
j=j+' ' +i
|
||||||
except:
|
except:
|
||||||
break
|
break
|
||||||
print 'j is ' + j
|
|
||||||
return len(j.strip())
|
return len(j.strip())
|
||||||
|
|
||||||
# Entries start with a line that looks like 'date title' - let's figure out how
|
# Entries start with a line that looks like 'date title' - let's figure out how
|
||||||
|
|
Loading…
Add table
Reference in a new issue