mirror of
https://github.com/fergalmoran/dss.api.git
synced 2026-01-06 00:23:57 +00:00
Added var for redis host
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import json
|
||||
import datetime
|
||||
import redis
|
||||
|
||||
import settings
|
||||
|
||||
def post_chat(session, image, user, message):
|
||||
r = redis.StrictRedis(host='localhost', port=6379, db=0)
|
||||
r = redis.StrictRedis(host=settings.REDIS_HOST, port=6379, db=0)
|
||||
payload = json.dumps({
|
||||
'session': session,
|
||||
'message': message,
|
||||
|
||||
Reference in New Issue
Block a user