checkBookInList checks if the given syncList contains the book with the given uuid
(uuid string, list *syncList)
| 530 | |
| 531 | // checkBookInList checks if the given syncList contains the book with the given uuid |
| 532 | func checkBookInList(uuid string, list *syncList) bool { |
| 533 | if _, ok := list.Books[uuid]; ok { |
| 534 | return true |
| 535 | } |
| 536 | |
| 537 | if _, ok := list.ExpungedBooks[uuid]; ok { |
| 538 | return true |
| 539 | } |
| 540 | |
| 541 | return false |
| 542 | } |
| 543 | |
| 544 | // cleanLocalNotes deletes from the local database any notes that are in invalid state |
| 545 | // judging by the full list of resources in the server. Concretely, the only acceptable |
no outgoing calls