This pull request is mainly for updating status and confidentiality in current observations on Firebase to numerical values instead of string so it could be easily changed names in app.
Main changes
Add python folder for database and MPA scripts
Add notebook to backup collections, update documents and delete collections
After updating fields, corresponding status and confidentiality will have the following numerical values.
confidentiality:
Do not share: 0
Share with community: 1
status:
Caught: 0
Observed: 1
Released: 2
This pull request is mainly for updating status and confidentiality in current observations on Firebase to numerical values instead of string so it could be easily changed names in app.
Main changes
python
folder for database and MPA scriptsAn example of updated version can be found in collection
observations_backup_1002_2023
. Backup before updates is in collectionobservations_backup_1002_2023_before_updating_fields
. https://console.firebase.google.com/u/2/project/oceanview-2c289/firestore/data/~2Fobservations~2F12ZFugPy8vRgg4f8gDkxI will update collection
observations
after you approve this PR.