mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2024-11-15 02:47:07 +01:00
Alan Orth
b0d81a543c
This makes it so we only need to define and connect once and then we can re-use the connection everywhere else.
10 lines
186 B
Python
10 lines
186 B
Python
from config import SOLR_SERVER
|
|
from SolrClient import SolrClient
|
|
|
|
def solr_connection():
|
|
connection = SolrClient(SOLR_SERVER)
|
|
|
|
return connection
|
|
|
|
# vim: set sw=4 ts=4 expandtab:
|