flauschtrud / broccoli

Broccoli is a free recipe app that lets you build your own personal recipe collection and helps you cook in a more eco-friendly way.
GNU General Public License v3.0
70 stars 6 forks source link

As a user I can repeatedly do imports without getting duplicate recipes #212

Open flauschtrud opened 5 months ago

meersjo commented 3 months ago

I suppose this wouldn't be terribly hard to implement; either with a UUID for each recipe (but that risks overwriting with an older version if you're importing an archive from a friend that contains a recipe they got from you that you've modified in the mean time), or you could checksum some fields to see if it's the same recipe on import (but that would then make duplicates if you had modified a local recipe before importing a backup... but maybe that's a feature, not a bug).