legumeinfo / ArachisPheno

AraPheno source code for http://arapheno.1001genomes.org
MIT License
0 stars 0 forks source link

ArachisPheno crashes if no Studies exist #7

Closed svengato closed 4 years ago

svengato commented 4 years ago

This behavior existed in AraPheno, it throws an error instead of displaying the Home page if no Studies exist. I initially had to add a spurious Study to the database by hand to get it to run.

svengato commented 4 years ago

The issue was in the Last Update field, which assumes that a latest Study exists so it can extract its date. This was a serious bug because it prevented bootstrapping from an initial state of no Studies.

Fixed by checking the number of Studies and displaying "--" if there are none.