Skip to content

Commit

Permalink
url instead of title in journey
Browse files Browse the repository at this point in the history
  • Loading branch information
stefano-ottolenghi committed Nov 3, 2023
1 parent 1f13606 commit 1eb0509
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import boto3
import flask
from dateutil import parser
from urllib.parse import urlparse
from neo4j import GraphDatabase

ssmc = boto3.client('ssm')
Expand Down Expand Up @@ -166,7 +167,7 @@ def prettify_journey(journey):
ret += ' '*(i-1) + '↳ '
if i < len(journey)-1:
ret += '(' + str(journey[i+1]['landTime'] - journey[i]['landTime']) + 's) '
ret += journey[i]['title']
ret += urlparse(journey[i]['url']).path
ret += '\n'

return ret
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ pytz==2023.3.post1
s3transfer==0.7.0
six==1.16.0
urllib3==2.0.7
urlparse
Werkzeug==3.0.1

0 comments on commit 1eb0509

Please sign in to comment.