Skip to content

Commit d4edf42

Browse files
committed
minor fixes
requriements.txt, app.py
1 parent 60befdf commit d4edf42

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
app.config['SESSION_PERMANENT'] = False
2323
app.config['SESSION_USE_SIGNER'] = True
2424
app.config['SESSION_KEY_PREFIX'] = 'trasho_'
25-
rediso = os.environ.get('REDIS_URI')
26-
redisp = os.environ.get('REDIS_PASS')
27-
redisport = os.environ.get('REDIS_PORT')
25+
rediso: str= os.environ.get('REDIS_URI')
26+
redisp: str= os.environ.get('REDIS_PASS')
27+
redisport: int= os.environ.get('REDIS_PORT')
2828
app.config['SESSION_REDIS'] = redis.Redis(host=rediso,port=redisport,password=redisp)
2929
Session(app)
3030

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ Flask==2.3.3
22
pymongo==4.6.1
33
flask_session==0.6.0
44
gunicorn==21.2.0
5-
redis=5.0.1
5+
redis==5.0.1

0 commit comments

Comments
 (0)