Skip to content

Commit ba7e589

Browse files
author
Richard Jones
committed
fixed sqlite journal ordering issue
1 parent 3bad97c commit ba7e589

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Fixed:
1515
- fixed journal "param" column size in RDBMS backends
1616
- fixed static file serving
1717
- fixed rego from email address (sf bug 947414)
18+
- fixed sqlite journal ordering issue
1819

1920

2021
2004-04-18 0.7.0b3

roundup/date.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: date.py,v 1.66 2004-04-13 05:28:00 richard Exp $
18+
# $Id: date.py,v 1.67 2004-05-05 00:38:59 richard Exp $
1919

2020
"""Date, time and time interval handling.
2121
"""
@@ -142,7 +142,7 @@ def set(self, spec, offset=0, date_re=re.compile(r'''
142142
(((?P<H>\d?\d):(?P<M>\d\d))?(:(?P<S>\d\d(\.\d+)?))?)? # hh:mm:ss
143143
(?P<o>.+)? # offset
144144
''', re.VERBOSE), serialised_re=re.compile(r'''
145-
(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d(\.\d+)?)
145+
(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d?(\.\d+)?)
146146
''', re.VERBOSE), add_granularity=0):
147147
''' set the date to the value in spec
148148
'''
@@ -369,7 +369,7 @@ def get_tuple(self):
369369
self.second, 0, 0, 0)
370370

371371
def serialise(self):
372-
return '%4d%02d%02d%02d%02d%02d'%(self.year, self.month,
372+
return '%4d%02d%02d%02d%02d%f'%(self.year, self.month,
373373
self.day, self.hour, self.minute, self.second)
374374

375375
def timestamp(self):

0 commit comments

Comments
 (0)