Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Commit ed5d418

Browse files
authored
Fix badge server local mode (#74)
1 parent 8a6a9be commit ed5d418

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

badge_server/badge_server.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,11 @@
6767
# 'pkg1_api_badge':{},
6868
# }
6969

70-
REDIS_CACHE = {
71-
'opencensus_self_comp_badge': None,
72-
'opencensus_google_comp_badge': None,
73-
}
70+
REDIS_CACHE = {}
7471

7572
def fake_redis_get(*args, **kwargs):
7673
key = args[2][0]
77-
return REDIS_CACHE[key]
74+
return REDIS_CACHE.get(key)
7875

7976

8077
def fake_redis_set(*args, **kwargs):

0 commit comments

Comments
 (0)