Skip to content

Commit

Permalink
ensure ltce indice names can be be parsed with python3-parse 1.6.6 (#296
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Dukestep authored Aug 14, 2023
1 parent 372bac6 commit 86e562a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions msc_pygeoapi/loader/ltce.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
DAYS_TO_KEEP = 7

INDEX_BASENAME = 'ltce_{}.'
INDEX_PATTERN = '{index_name}.{year:d}-{month:d}-{day:d}.{hour:2d}{minute:2d}{second:2d}' # noqa
INDEX_PATTERN = '{index_name}.{year:d}-{month:d}-{day:d}.{hour:d}-{minute:d}-{second:d}' # noqa

SETTINGS = {
'order': 0,
Expand Down Expand Up @@ -362,7 +362,7 @@ def __init__(self, db_string=None, conn_config={}):
BaseLoader.__init__(self)
self.conn = ElasticsearchConnector(conn_config)
self.db_conn = None
self.date = datetime.utcnow().strftime('%Y-%m-%d.%H%M%S')
self.date = datetime.utcnow().strftime('%Y-%m-%d.%H-%M-%S')

# setup DB connection
if db_string is not None:
Expand Down

0 comments on commit 86e562a

Please sign in to comment.