UniRegensburg / unsere-app-fur-die-universitat-regensburg-bib-buddy

Bib Buddy - deine App für eine konzentrierte, offene Literaturarbeit!
0 stars 0 forks source link

Exported BibTex file does not overwrite #103

Closed silvia-ivanova-github-rep closed 3 years ago

silvia-ivanova-github-rep commented 3 years ago

The exported BibTex file does not only contain the actual data (that should be exported) but adds data to existing content that already exists. So as result, the file size of the exported BibTex file is always increased.

For example, if you do not change any data in the app (deletion/ addition of shelves, books, notes), and you try to export it twice, then the BibTex file does not overwrite the existing data, but adds it twice.

silvia-ivanova-github-rep commented 3 years ago

Fixed: the variable that stores the bib content is declared outside the method retrieveBibContent(). This method generates the bib data and gives it as an output string. Declaring the variable inside the method above, fixed the bug.