You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2010/02/21 23:15:57 UTC
[Couchdb Wiki] Trivial Update of "DumpOracleDbToCouchDbPython" by newacct
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.
The "DumpOracleDbToCouchDbPython" page has been changed by newacct.
http://wiki.apache.org/couchdb/DumpOracleDbToCouchDbPython?action=diff&rev1=6&rev2=7
--------------------------------------------------
if isinstance( entry[k], datetime.datetime ):
entry[ k ] = "%s"%entry[ k ]
- if not str( myunique[ 'myunique' ] ) in self.db:
+ if str( myunique[ 'myunique' ] ) not in self.db:
self.db[ str( myunique[ 'myunique' ] ) ] = entry
else:
doc = self.db[ str( myunique[ 'myunique' ] ) ]