Patch to prevent duplicate prices

Phil Longstaff plongstaff at newearth.org
Thu Oct 14 08:36:36 EDT 2004


I have found this patch to be useful.  It is built on the 1.8.X branch. 
It checks each new price being added to the pricedb and rejects any new
prices where the date, price, commodity and currency match any existing
price.  It prevents duplicate prices in the pricedb if you download
quotes and receive the same quote for any commodity.

Phil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnc-pricedb.c.diff
Type: text/x-patch
Size: 1920 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20041014/4c99da34/gnc-pricedb.c.bin


More information about the gnucash-devel mailing list