From fd34bd69e42e7efa270200e704de73d6a0fcc8ff Mon Sep 17 00:00:00 2001 From: ein Date: Sat, 29 Jan 2022 15:05:11 -0800 Subject: [PATCH] Updating .gitignore and adding a bash script to format the code with black --- .gitignore | 1 + app/nft.py | 14 +++++++------- format_code.sh | 1 + 3 files changed, 9 insertions(+), 7 deletions(-) create mode 100755 format_code.sh diff --git a/.gitignore b/.gitignore index e8120413..ccb2f46d 100755 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ dragon_bot_env __pycache__ *.csv *env +.syncthing* diff --git a/app/nft.py b/app/nft.py index 89abcc6f..0a28723a 100644 --- a/app/nft.py +++ b/app/nft.py @@ -10,13 +10,13 @@ def get_nft(): # https://opensea.io/assets/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d/1469 # In this case, "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d" collections = [ - "0xed5af388653567af2f388e6224dc7c4b3241c544", # Azuki - "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d", # Bored Ape Yacht Club - "0x5180db8f5c931aae63c74266b211f580155ecac8", # Crypto Coven - "0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb", # Crypto Punks - "0x8943c7bac1914c9a7aba750bf2b6b09fd21037e0", # Lazy Lions - "0xbd3531da5cf5857e7cfaa92426877b022e612cf8", # Pudgy Penguins - "0x54a79ab6f5210fcb2c5fc914271a865003f15576", # Panda Astronaut Club + "0xed5af388653567af2f388e6224dc7c4b3241c544", # Azuki + "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d", # Bored Ape Yacht Club + "0x5180db8f5c931aae63c74266b211f580155ecac8", # Crypto Coven + "0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb", # Crypto Punks + "0x8943c7bac1914c9a7aba750bf2b6b09fd21037e0", # Lazy Lions + "0xbd3531da5cf5857e7cfaa92426877b022e612cf8", # Pudgy Penguins + "0x54a79ab6f5210fcb2c5fc914271a865003f15576", # Panda Astronaut Club ] url = ( "https://api.opensea.io/api/v1/bundles?limit=50&asset_contract_address=%s" diff --git a/format_code.sh b/format_code.sh new file mode 100755 index 00000000..aff712cb --- /dev/null +++ b/format_code.sh @@ -0,0 +1 @@ +docker run -ti -v $(pwd):/tmp/python python bash -c "cd /tmp/python ; pip install black; black ."