this sets access mode to readonly, it is required if filesystem is readonly, else tynidb provider will throw an error. if at some point pygeoapi allows transactions, we should make a more advanced check here (verify if readonly file first)

resolves #909
This commit is contained in:
Paul van Genuchten
2022-05-24 22:41:23 +02:00
parent ce425887d0
commit b64882d65c
+1 -1
View File
@@ -65,7 +65,7 @@ class TinyDBCatalogueProvider(BaseProvider):
LOGGER.error(msg)
raise ProviderConnectionError(msg)
self.db = TinyDB(self.data)
self.db = TinyDB(self.data, access_mode="r")
self.fields = self.get_fields()