Skip to content

Commit

Permalink
Merge pull request #23 from ch3p4ll3/QuickFix
Browse files Browse the repository at this point in the history
Quick fix
  • Loading branch information
ch3p4ll3 authored Oct 29, 2023
2 parents 6796caf + 3a543af commit 0f4598a
Show file tree
Hide file tree
Showing 11 changed files with 765 additions and 597 deletions.
168 changes: 168 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

config.json

*.session
*.session-journal

*.sqlite
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM python:3.10
FROM python:3.11

WORKDIR /app

COPY requirements.txt requirements.txt

RUN pip3 install -r requirements.txt

ENV IS_DOCKER True

COPY . .

VOLUME [ "/app/config" ]
Expand Down
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from src.bot import app, scheduler
from src.qbittorrent_bot import app, scheduler

if __name__ == '__main__':
scheduler.start()
print("Bot started")
app.run()
36 changes: 20 additions & 16 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
APScheduler==3.9.1
async-lru==1.0.3
certifi==2022.9.24
charset-normalizer==2.1.1
annotated-types==0.6.0
APScheduler==3.10.4
async-lru==2.0.4
certifi==2023.7.22
charset-normalizer==3.3.1
idna==3.4
pony==0.7.16
psutil==5.9.2
packaging==23.2
pony==0.7.17
psutil==5.9.6
pyaes==1.6.1
pydantic==1.10.2
Pyrogram==2.0.57
pydantic==2.4.2
pydantic_core==2.10.1
Pyrogram==2.0.106
PySocks==1.7.1
pytz==2022.2.1
pytz==2023.3.post1
pytz-deprecation-shim==0.1.0.post0
qbittorrent-api==2022.8.38
requests==2.28.1
qbittorrent-api==2023.10.54
requests==2.31.0
six==1.16.0
TgCrypto==1.2.3
typing_extensions==4.3.0
tzdata==2022.2
tzlocal==4.2
urllib3==1.26.12
TgCrypto==1.2.5
typing_extensions==4.8.0
tzdata==2023.3
tzlocal==5.2
urllib3==2.0.7
uvloop==0.19.0
Loading

0 comments on commit 0f4598a

Please sign in to comment.