olmps / memo

Memo is an open-source, programming-oriented spaced repetition software (SRS) written in Flutter.
BSD 3-Clause "New" or "Revised" License
1.83k stars 159 forks source link

Removes unique validation from Memo's content #272

Closed ggirotto closed 2 years ago

ggirotto commented 2 years ago

The motivation for this change is that there is the possibility of Memos having duplicate content. A good example is guia_scrum.json collection, which has the following Memo:

Memo ```json { "id": "ff19caf7-a8fa-4bcc-824f-014cb187ef99", "question": [ { "insert": "Os cinco valores do Scrum são: __________.\n" } ], "answer": [ { "insert": "Os cinco valores do Scrum são: " }, { "insert": "COMPROMISSO", "attributes": { "bold": true, "underline": true } }, { "insert": ", " }, { "insert": "FOCO", "attributes": { "bold": true, "underline": true } }, { "insert": ", " }, { "insert": "ABERTURA", "attributes": { "bold": true, "underline": true } }, { "insert": ", " }, { "insert": "RESPEITO", "attributes": { "bold": true, "underline": true } }, { "insert": " e " }, { "insert": "CORAGEM", "attributes": { "bold": true, "underline": true } }, { "insert": ".\n" } ] } ```

That repeats the following block:

{
          "insert": ", "
        },