Skip to content

Commit 11cf00e

Browse files
committed
assume that the date is the last bit of the header?
1 parent 1a1e789 commit 11cf00e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

htsget_server/database.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,15 +493,15 @@ def get_analysis_date_from_headers(headertexts):
493493
possible_dates = []
494494
for headertext in headertexts:
495495
# look for datelike things
496-
date_parse = re.match(r"(.+[Dd]ate)=(.+)\s", headertext)
496+
date_parse = re.match(r"(.+[Dd]ate)=(.+)", headertext)
497497
if date_parse is not None:
498498
if date_parse.group(1) == "##fileDate":
499499
possible_dates.insert(0, date_parse.group(2))
500500
else:
501501
possible_dates.append(date_parse.group(2))
502502

503503
# process datelike things
504-
logger.info(possible_dates)
504+
logger.debug(possible_dates)
505505
analysis_date = None
506506
while len(possible_dates) > 0:
507507
possible_date = possible_dates.pop(0)
@@ -511,7 +511,7 @@ def get_analysis_date_from_headers(headertexts):
511511
if analysis_date is not None:
512512
analysis_date = analysis_date[0][1]
513513
if analysis_date is not None:
514-
logger.info(analysis_date)
514+
logger.debug(analysis_date)
515515
return analysis_date
516516
return None
517517

0 commit comments

Comments
 (0)