Skip to content

Commit b916d06

Browse files
authored
refactor dependencies.py
1 parent 06eaef0 commit b916d06

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

app/dependencies.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
from peewee import *
21
from environs import Env
32
from redis import Redis
43
from rq import Queue
4+
from peewee import *
5+
56

67
environment = Env()
78
environment.read_env()
89

9-
DATABASE_NAME = environment('DATABASE_NAME')
10-
DATABASE_URL = environment('DATABASE_URL')
11-
12-
REDIS_URL = environment('REDIS_URL')
10+
DATABASE_NAME = environment("DATABASE_NAME")
11+
DATABASE_URL = environment("DATABASE_URL")
1312

14-
STOCK_URL = 'https://www.w3schools.com/python/demopage.php'
13+
REDIS_URL = environment("REDIS_URL")
1514

1615

1716
def get_db():

0 commit comments

Comments
 (0)