Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When STD or NATT survey is validated, an empty row is created for non-birds sections #203

Open
mathieuLU opened this issue Jan 25, 2022 · 0 comments
Assignees

Comments

@mathieuLU
Copy link
Collaborator

Discovered when extracting the data for STD.
several rows in the extract that say :
ERROR : No ART for mammals /

these lines are empty. Looks like this in BC and in the database
Screenshot from 2022-01-25 10-44-53
Screenshot from 2022-01-25 11-02-27

Manual fix to remove all of them (exists in Natt as well) . I guess they can exist as well for amphibians or other non-mandatory animals fields

db.output.updateMany(
{
	"data.mammalObservations.speciesMammals.listId":"", 
	"data.mammalObservations.individualCount":0, 
	"data.mammalObservations":{$size:1}
},
{
	$set:{
		"data.mammalObservations":[]
	}
}
)

My guess is that the pre-created line when entering the form stays when validating => empty line in the end.
Uploading Screenshot from 2022-01-25 10-47-17.png…

Should be possible to remove empty line when validating ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants