Update server.py

fixed the projects functions due to changes in yaml caonfiguration