Closed johanvdw closed 2 years ago
https://github.com/fluves/pywaterinfo/blob/a9538f3749c3cb1a8204b12b076eef3328be0a0c/src/pywaterinfo/waterinfo.py#L76
Will write a file:
ls /tmp/pywaterinfo_cache.sqlite -al -rw-r--r-- 1 niels users 7217152 Feb 2 09:09 /tmp/pywaterinfo_cache.sqlite
which is owned by a specific user. The next user trying waterinfo will get a sqlite3.OperationalError: attempt to write a readonly database.
https://requests-cache.readthedocs.io/en/stable/user_guide/files.html#system-paths
we should use use_cache_dir rather than use_temp
use_cache_dir
use_temp
https://github.com/fluves/pywaterinfo/blob/a9538f3749c3cb1a8204b12b076eef3328be0a0c/src/pywaterinfo/waterinfo.py#L76
Will write a file:
which is owned by a specific user. The next user trying waterinfo will get a sqlite3.OperationalError: attempt to write a readonly database.