Merge pull request #9656 from freqtrade/dependabot/pip/develop/sqlalchemy-2.0.25

Bump sqlalchemy from 2.0.23 to 2.0.25
This commit is contained in:
Matthias 2024-01-08 18:25:53 +01:00 committed by GitHub
commit 3741cbf3a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ repos:
- types-requests==2.31.0.20240106
- types-tabulate==0.9.0.20240106
- types-python-dateutil==2.8.19.20240106
- SQLAlchemy==2.0.23
- SQLAlchemy==2.0.25
# stages: [push]
- repo: https://github.com/pycqa/isort

View File

@ -1637,7 +1637,7 @@ class Trade(ModelBase, LocalTrade):
Retrieves total realized profit
"""
if Trade.use_db:
total_profit: float = Trade.session.execute(
total_profit = Trade.session.execute(
select(func.sum(Trade.close_profit_abs)).filter(Trade.is_open.is_(False))
).scalar_one()
else:
@ -1845,4 +1845,4 @@ class Trade(ModelBase, LocalTrade):
Order.order_filled_date >= start_date,
Order.status == 'closed'
)).scalar_one()
return trading_volume
return trading_volume or 0.0

View File

@ -5,7 +5,7 @@ pandas-ta==0.3.14b
ccxt==4.2.9
cryptography==41.0.7
aiohttp==3.9.1
SQLAlchemy==2.0.23
SQLAlchemy==2.0.25
python-telegram-bot==20.7
# can't be hard-pinned due to telegram-bot pinning httpx with ~
httpx>=0.24.1