||
def has_cached_observation(self) -> bool: """Returns whether or not a cached observation exists in the database. Returns: True if cached observation exists, False if not. """ return True if len(self._cache_db) > 0 else False
发现问题出在len(self._cache_db),在cloudExporter中设置的db参数cache.json
"cloudExporter": { "host": "http://192.168.31.144:443/", "user": "openadms", "password": "geovey", "db": "cache.json", "cache": "file" }
经过百度发现,估计是_cache_db.json文件内容太大了!
清除cache.json缓存文件就ok了;
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-11-29 06:49
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社