MCPcopy Create free account
hub / github.com/PostmonAPI/postmon / insert_or_update_uf

Method insert_or_update_uf

database.py:46–48  ·  view source on GitHub ↗
(self, obj, **kwargs)

Source from the content-addressed store, hash-verified

44 self._db.ceps.update({'cep': obj['cep']}, update, upsert=True)
45
46 def insert_or_update_uf(self, obj, **kwargs):
47 update = {'$set': obj}
48 self._db.ufs.update({'sigla': obj['sigla']}, update, upsert=True)
49
50 def insert_or_update_cidade(self, obj, **kwargs):
51 update = {'$set': obj}

Callers 1

_track_ufsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected