1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

fixed minor bug in lib/cache.py

This commit is contained in:
Igor Chubin
2019-02-23 22:22:13 +00:00
parent b9839f4637
commit 78649904e0
+1 -1
View File
@@ -8,7 +8,7 @@ if os.environ.get('REDIS_HOST', '').lower() != 'none':
else:
_REDIS = None
if os.environ.get('REDIS_PREFIX', '').lower() != 'none':
if os.environ.get('REDIS_PREFIX', ''):
_REDIS_PREFIX = os.environ.get('REDIS_PREFIX', '') + ':'
else:
_REDIS_PREFIX = ''