Le vendredi 18 avril 2014 à 17:32 +0300, Izack Varsanno a écrit : > So I wrote a short python script. > Darktable store all presets on the "database" (a sqlite3 DB, usually > found at ~/.config/darktable/library.db) inside a table named > "presets". > The script reads the "presets" table on the source library.db database > and append them to the same table on the destination library.db > database. > existing presets stays without change (no duplication)
This seems wrong as a presets having been changed won't be copied, so at some point you'll have different presets in your library.db. Maybe an "INSERT OR REPLACE INTO..." would be better? Yet, you must be sure to copy the new presets over the oldest one and not the inverse. -- Pascal Obry / Magny Les Hameaux (78) The best way to travel is by means of imagination http://v2p.fr.eu.org http://www.obry.net gpg --keyserver keys.gnupg.net --recv-key F949BD3B ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ Darktable-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/darktable-users
