The browse page could not be viewed when there are no projects since the get_all_projects function then return an empty list. A list has no .values() attribute which is what is used in the browse.html file. This caused UndefinedError exception to be raised.
Now a dict is returned when there are no projects so that the page can still be viewed empty 😊
The browse page could not be viewed when there are no projects since the get_all_projects function then return an empty list. A list has no .values() attribute which is what is used in the browse.html file. This caused UndefinedError exception to be raised.
Now a dict is returned when there are no projects so that the page can still be viewed empty 😊