Migrate to Podman
This commit is contained in:
@@ -1,14 +1,6 @@
|
||||
import os
|
||||
|
||||
import stripe
|
||||
from django.conf import settings
|
||||
|
||||
os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true"
|
||||
# from redis import StrictRedis
|
||||
|
||||
# r = StrictRedis(unix_socket_path="/var/run/redis/redis.sock", db=0)
|
||||
|
||||
if settings.STRIPE_TEST:
|
||||
stripe.api_key = settings.STRIPE_API_KEY_TEST
|
||||
else:
|
||||
stripe.api_key = settings.STRIPE_API_KEY_PROD
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
import stripe
|
||||
from django.conf import settings
|
||||
from lago_python_client import Client
|
||||
from lago_python_client.clients.base_client import LagoApiError
|
||||
|
||||
# from lago_python_client import Client
|
||||
from lago_python_client.client import Client
|
||||
from lago_python_client.exceptions import LagoApiError
|
||||
from lago_python_client.models import Customer, CustomerBillingConfiguration
|
||||
|
||||
client = Client(api_key=settings.LAGO_API_KEY, api_url=settings.LAGO_URL)
|
||||
if settings.STRIPE_TEST:
|
||||
stripe.api_key = settings.STRIPE_API_KEY_TEST
|
||||
else:
|
||||
stripe.api_key = settings.STRIPE_API_KEY_PROD
|
||||
|
||||
|
||||
def expand_name(first_name, last_name):
|
||||
|
||||
@@ -412,6 +412,7 @@ def execute_strategy(callback, strategy, func):
|
||||
direction=direction,
|
||||
**protection,
|
||||
)
|
||||
log.debug(f"Created Trade: {new_trade}")
|
||||
new_trade.save()
|
||||
|
||||
if strategy.risk_model is not None:
|
||||
|
||||
Reference in New Issue
Block a user