Safe2COVIDApp / bct-server

Bluetooth Contact Tracing for Covid19 - server
5 stars 1 forks source link

Refactor time #58

Closed mitra42 closed 4 years ago

mitra42 commented 4 years ago

Note this builds on #52 (pseudo client) so please merge that first

This PR moves _get_matching_contacts up to the ContactDict as discussed on the phone, I have not refactored ContactDict or SpatialIndex to include the updatetoken index

This also implements the time thinking from #57, more importantly it centralizes that decision into one function Contacts._good_date which we can tweak if needed. All tests passed once I added the 1 sec delay.