python u dick

This commit is contained in:
Jeremy Zhang 2017-05-08 21:47:07 -07:00
parent d29d70565d
commit 7037c7ef8f

View File

@ -32,7 +32,7 @@ def make_cache_key(*args, **kwargs):
sess = generate_session_key() sess = generate_session_key()
return (path + args + sess + ip).encode('utf-8') return (path + args + sess + ip).encode('utf-8')
def make_user_cache_key(*args, **kwargs) def make_user_cache_key(*args, **kwargs):
ip = get_client_ipaddr() ip = get_client_ipaddr()
sess = generate_session_key() sess = generate_session_key()
return (sess + ip).encode('utf-8') return (sess + ip).encode('utf-8')