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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user