Skip to content

Commit

Permalink
Handle non-14-digit datetimes. Closes #286
Browse files Browse the repository at this point in the history
  • Loading branch information
machawk1 committed Dec 1, 2017
1 parent 2f148ff commit 55d7f21
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 55d7f21

Please sign in to comment.