mirror of
https://github.com/fergalmoran/dss.api.git
synced 2026-01-06 08:33:57 +00:00
Merge branch 'master' of github.com:fergalmoran/dss.api
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import json
|
||||
import datetime
|
||||
import redis
|
||||
from dss 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