Skip to content

Commit

Permalink
Merge pull request #300 from oduwsdl/issue-286
Browse files Browse the repository at this point in the history
Handle non-14-digit datetimes. Closes #286
  • Loading branch information
machawk1 authored Dec 1, 2017
2 parents 2f148ff + 55d7f21 commit d5d358d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ipwb/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.2017.11.30.2300'
__version__ = '0.2017.12.01.0011'
3 changes: 2 additions & 1 deletion ipwb/replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,10 @@ def getCompleteURI(uri):
return uri


@app.route('/<regex("[0-9]{14}"):datetime>/<path:urir>')
@app.route('/<regex("[0-9]{1,14}"):datetime>/<path:urir>')
def showMementoAtDatetime(urir, datetime):
urir = getCompleteURI(urir)
datetime = datetime.ljust(14, '0')
return show_uri(urir, datetime)


Expand Down

0 comments on commit d5d358d

Please sign in to comment.