mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2025-04-14 02:29:23 +02:00
dspace_statistics_api/util.py: Use docstring for get_statistics_shards
It seems better to use a docstring instead of a comment because it can potentially be used by IDEs or documentation generators.
This commit is contained in:
parent
495386856b
commit
21b500b4f7
@ -1,6 +1,10 @@
|
|||||||
# Enumerate the cores in Solr to determine if statistics have been sharded into
|
|
||||||
# yearly shards by DSpace's stats-util or not (for example: statistics-2018).
|
|
||||||
def get_statistics_shards():
|
def get_statistics_shards():
|
||||||
|
"""Enumerate the cores in Solr to determine if statistics have been sharded into
|
||||||
|
yearly shards by DSpace's stats-util or not (for example: statistics-2018).
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
str:A list of Solr statistics shards separated by commas.
|
||||||
|
"""
|
||||||
from .config import SOLR_SERVER
|
from .config import SOLR_SERVER
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
Loading…
x
Reference in New Issue
Block a user