Skip to content

Commit 1170f53

Browse files
author
Richard Jones
committed
*** empty log message ***
1 parent 339c503 commit 1170f53

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

roundup/backends/rdbms_common.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: rdbms_common.py,v 1.119 2004-07-03 23:05:15 richard Exp $
1+
# $Id: rdbms_common.py,v 1.120 2004-07-04 05:07:20 richard Exp $
22
''' Relational database (SQL) backend common code.
33
44
Basics:
@@ -2184,7 +2184,6 @@ def filter(self, search_matches, filterspec, sort=(None,None),
21842184
cols = ','.join(cols)
21852185
loj = ' '.join(loj)
21862186
sql = 'select %s from %s %s %s%s'%(cols, frum, loj, where, order)
2187-
print sql
21882187
args = tuple(args)
21892188
__traceback_info__ = (sql, args)
21902189
self.db.sql(sql, args)

roundup/date.py

Lines changed: 3 additions & 1 deletion
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.73 2004-06-09 06:13:52 richard Exp $
18+
# $Id: date.py,v 1.74 2004-07-04 05:07:19 richard Exp $
1919

2020
"""Date, time and time interval handling.
2121
"""
@@ -128,6 +128,8 @@ def __init__(self, spec='.', offset=0, add_granularity=0, translator=i18n):
128128
return
129129
elif hasattr(spec, 'tuple'):
130130
spec = spec.tuple()
131+
elif isinstance(spec, Date):
132+
spec = spec.get_tuple()
131133
try:
132134
y,m,d,H,M,S,x,x,x = spec
133135
frac = S - int(S)

0 commit comments

Comments
 (0)