Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
use redis uri instead of localhost for redis
Browse files Browse the repository at this point in the history
  • Loading branch information
CelestialCrafter committed Oct 25, 2023
1 parent fb77f33 commit d11fb19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/internal_checker.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import jwt, json, os
from redis import Redis
from redis import from_url
from price import get_prices
from ipaddress import ip_address
from flask import request
from importlib import import_module
from utils import get_algorithms

redis = Redis(host='localhost', port=6379)
redis = from_url(os.environ['REDIS_URI'])

def algorithm_output(algorithm, prices):
module = import_module(f'algorithms.{algorithm}')
Expand Down

0 comments on commit d11fb19

Please sign in to comment.