Skip to content

Commit

Permalink
Merge pull request #4 from panyapoc/panyapoc
Browse files Browse the repository at this point in the history
clean up dep and bug fixes
  • Loading branch information
panyapoc authored Feb 26, 2020
2 parents 90e87e9 + f2fc6d2 commit e5bfa02
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 385 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ This may take up to and over an hour to complete, mostly on the deployment of in
* GetRecommendations
* GetRecommendationsByItem
3. In the environment section and replace the ARN with the one create from jupyter notebook.
4. Goto ``/webui``, Open config.tsx file and edit the following varible
4. Goto ``/webui/src/``, Open [confix.tsx](/webui/src/index.tsx) file and edit the following varible. These varible can be found in cloudformation output.
* Apitree
* AnonymousPoolId
* StreamName
Expand Down
1 change: 1 addition & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ sam deploy \
--parameter-overrides BucketName=$SRCS3 ProjectName=$STACKNAME
# --disable-rollback

#TODO: edit webui/src/config.tsx to point to the same API

echo "Getting web bucket name from stack output..."
WEBBUCKETNAME=`aws cloudformation describe-stacks --stack-name $STACKNAME \
Expand Down
2 changes: 2 additions & 0 deletions functions/APIs/PostClickEvent/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def handler(event, context):
def send_clickEvent(clickEvent):
try:
session_ID = clickEvent['sessionID']
if session_ID == None:
session_ID = str(uuid.uuid1())
except:
session_ID = str(uuid.uuid1())

Expand Down
Loading

0 comments on commit e5bfa02

Please sign in to comment.