fix logic error in CachePackage.open()
This commit is contained in:
parent
f2f048d094
commit
6e12553c5f
1 changed files with 2 additions and 2 deletions
4
src/c3nav/mapdata/utils/cache/package.py
vendored
4
src/c3nav/mapdata/utils/cache/package.py
vendored
|
@ -107,8 +107,8 @@ class CachePackage:
|
||||||
return cls(bounds, levels)
|
return cls(bounds, levels)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def open(cls, filename=None):
|
def open(cls, package=None):
|
||||||
if filename is None:
|
if package is None:
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
package = settings.CACHE_ROOT / 'package.tar'
|
package = settings.CACHE_ROOT / 'package.tar'
|
||||||
return cls.read(package.open('rb'))
|
return cls.read(package.open('rb'))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue