Update observation_repository.py

Add ranked field to observations