g-liu/HowManyCities

Duplicate cities being added?

Closed this issue · 1 comments

g-liu commented

Try this

  1. Open app
  2. Guess city like Dickinson ND
  3. Close app
  4. Open app
  5. Guess the same city

The city is added again and it shouldn't be. What's causing this?

g-liu commented

Every city is indexed in the backend by pk or primary key. This is unique for every city and can be used to replace the hasher.