mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2025-09-17 08:56:42 +02:00
Split database access into RW and RO
The indexer need to be able to write to the database, but the API only needs to read it.
This commit is contained in:
4
app.py
4
app.py
@@ -3,11 +3,11 @@
|
||||
# https://wiki.duraspace.org/display/DSPACE/Solr
|
||||
|
||||
from config import SOLR_CORE
|
||||
from database import database_connection
|
||||
from database import database_connection_ro
|
||||
import falcon
|
||||
from solr import solr_connection
|
||||
|
||||
db = database_connection()
|
||||
db = database_connection_ro()
|
||||
solr = solr_connection()
|
||||
|
||||
class ItemResource:
|
||||
|
Reference in New Issue
Block a user