Skip to content

Commit

Permalink
Fix db remove + small updates (#109)
Browse files Browse the repository at this point in the history
- fixed mongodb semantics remove
- extended .gitignore
- updated `black` pre-commit version
  • Loading branch information
kchojn authored Apr 22, 2022
1 parent f2cb902 commit 6a7f642
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,4 @@ dmypy.json
.docker_env

tmp/
*.sqlite
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 21.12b0
rev: 22.3.0
hooks:
- id: black
language_version: python3.9
Expand Down
2 changes: 1 addition & 1 deletion ethtx_ce/app/frontend/semantics.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def reload_semantics():
data = json.loads(request.data)

ethtx: EthTx = current_app.ethtx
ethtx.semantics.database._addresses.remove({"address": data["address"]})
ethtx.semantics.database._addresses.delete_one({"address": data["address"]})
ethtx.semantics.get_semantics.cache_clear()
ethtx.semantics.get_semantics(
data["chain_id"] if data.get("chain_id") else current_app.ethtx._default_chain,
Expand Down

0 comments on commit 6a7f642

Please sign in to comment.