removing persistence update

This commit is contained in:
misagh 2018-11-17 21:59:21 +01:00
parent d5b47abe98
commit f4bb203782
2 changed files with 1 additions and 15 deletions

View File

@ -813,17 +813,3 @@ class FreqtradeBot(object):
# Send the message
self.rpc.send_msg(msg)
Trade.session.flush()
def update_wallets(self) -> bool:
wallets = self.exchange.get_balances()
for currency in wallets:
wallet = Wallet(
exchange=self.exchange._api.id,
currency=currency,
free=wallets[currency]['free'],
used=wallets[currency]['used'],
total=wallets[currency]['total']
)
Wallet.session.add(wallet)
Wallet.session.flush()

View File

@ -9,7 +9,7 @@ from typing import Any, Dict, Optional
import arrow
from sqlalchemy import (Boolean, Column, DateTime, Float, Integer, String,
create_engine, inspect, PrimaryKeyConstraint)
create_engine, inspect)
from sqlalchemy.exc import NoSuchModuleError
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm.scoping import scoped_session