Skip to content

Commit

Permalink
Merge pull request #37 from CavalcanteLucas/read
Browse files Browse the repository at this point in the history
September, 2022
  • Loading branch information
CavalcanteLucas authored Sep 26, 2022
2 parents 62b79c5 + f054bd8 commit 973c686
Show file tree
Hide file tree
Showing 20 changed files with 60 additions and 128 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}
],
"source": [
"def set_card(dec, position, card):\n",
"def set_card(deck, position, card):\n",
" deck._cards[position] = card\n",
"\n",
"FrenchDeck.__setitem__ = set_card\n",
Expand Down
1 change: 0 additions & 1 deletion current_pg.log

This file was deleted.

36 changes: 36 additions & 0 deletions log.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
"""
CURRENT_PAGE = 420
"""

import argparse
from os import system

TOTAL_PAGES = 711


def main(current_page):

with open(__file__, 'r') as file:
lines = file.readlines()

lines[1] = 'CURRENT_PAGE = {}\n'.format(current_page)

with open(__file__, 'w') as file:
for line in lines:
file.write(line)

progress = int(current_page) / TOTAL_PAGES * 100

system('git add -A')
system('git checkout read')
system('git commit -m "read: {}"'.format(current_page))
system('git push origin read')

print('\n\tCurrent progress: {:.2f}'.format(progress), end='')


if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('current_page')
args = parser.parse_args()
main(args.current_page)
Empty file removed requirements/requirements-win.txt
Empty file.
24 changes: 23 additions & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,26 +1,40 @@
aiohttp==3.8.1
aiosignal==1.2.0
argon2-cffi==21.3.0
argon2-cffi-bindings==21.2.0
asttokens==2.0.5
async-generator==1.10
async-timeout==4.0.2
attrs==21.4.0
backcall==0.2.0
bcrypt==4.0.0
black==22.1.0
bleach==5.0.1
certifi==2022.5.18.1
cffi==1.15.1
charset-normalizer==2.0.12
click==8.0.3
cryptography==37.0.4
debugpy==1.5.1
decorator==5.1.1
defusedxml==0.7.1
entrypoints==0.4
executing==0.8.2
frozenlist==1.3.0
idna==3.3
iniconfig==1.1.1
ipykernel==6.9.1
ipython==8.0.1
ipython-genutils==0.2.0
jedi==0.18.1
Jinja2==3.1.2
jsonschema==4.15.0
jupyter-client==7.1.2
jupyter-core==4.9.2
jupyterlab-pygments==0.2.2
MarkupSafe==2.1.1
matplotlib-inline==0.1.3
mistune==0.8.4
multidict==6.0.2
mypy-extensions==0.4.3
nbclient==0.5.2
Expand All @@ -29,7 +43,7 @@ nbformat==5.1.2
nest-asyncio==1.5.4
netifaces==0.10.4
notebook==6.4.12
numpy==1.22.0
numpy==1.23.3
oauthlib==3.1.0
olefile==0.46
packaging==21.3
Expand All @@ -41,23 +55,31 @@ pexpect==4.8.0
pickleshare==0.7.5
platformdirs==2.5.0
pluggy==1.0.0
prometheus-client==0.14.1
prompt-toolkit==3.0.28
ptyprocess==0.7.0
pure-eval==0.2.2
py==1.11.0
pycparser==2.21
Pygments==2.11.2
PyNaCl==1.5.0
pyparsing==3.0.9
pyrsistent==0.18.1
pytest==7.1.2
python-dateutil==2.8.2
pyzmq==22.3.0
repackage==0.7.3
requests==2.28.0
Send2Trash==1.8.0
six==1.16.0
stack-data==0.2.0
terminado==0.15.0
testpath==0.6.0
tomli==2.0.1
tornado==6.1
tqdm==4.64.0
traitlets==5.1.1
urllib3==1.26.9
wcwidth==0.2.5
webencodings==0.5.1
yarl==1.7.2

0 comments on commit 973c686

Please sign in to comment.