mirror of
https://github.com/dh1tw/pyhamtools.git
synced 2026-01-12 19:51:34 +01:00
Docs: Fix redis related example in docstring
This docstring demonstrates how to use Redis to query the data. However, Redis is NOT actually getting used due to `lookuptype="countryfile"` argument instead of the required `lookuptype="redis" argument.
This commit is contained in:
parent
0fa24e9741
commit
905262cdcb
|
|
@ -176,7 +176,7 @@ class LookupLib(object):
|
|||
>>> from pyhamtools import LookupLib
|
||||
>>> import redis
|
||||
>>> r = redis.Redis()
|
||||
>>> my_lookuplib = LookupLib(lookuptype="countryfile", redis_instance=r, redis_prefix="CF")
|
||||
>>> my_lookuplib = LookupLib(lookuptype="redis", redis_instance=r, redis_prefix="CF")
|
||||
>>> my_lookuplib.lookup_callsign("3D2RI")
|
||||
{
|
||||
u'adif': 460,
|
||||
|
|
|
|||
Loading…
Reference in a new issue