New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/20220503 add matching #3
Conversation
json/Fashion.json
Outdated
"type": "postback", | ||
"label": "こだわる", | ||
"displayText": "こだわる", | ||
"data": "action=fashion&fashion=こだわる" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dataの形式が日本語が危うい
json/Job.json
Outdated
"type": "postback", | ||
"label": "飲食(居酒屋、フード)", | ||
"displayText": "飲食(居酒屋、フード)", | ||
"data": "action=job&job=飲食(居酒屋、フード)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dataの形式
json/Smoke.json
Outdated
"type": "postback", | ||
"label": "吸わない", | ||
"displayText": "吸わない", | ||
"data": "action=smoke&smoke=吸わない" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
データの形式
@@ -4,4 +4,4 @@ echo "DEPLOY START!!" | |||
funcname="aisekiyaFunc" | |||
|
|||
docker run --rm -v "$PWD":/var/task shoda888/local2pylambda:latest | |||
aws lambda update-function-code --function-name ${funcname} --zip-file fileb://deploy_package.zip --profile aisekiya-user | |||
aws lambda update-function-code --function-name ${funcname} --zip-file fileb://deploy_package.zip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ローカル環境でawsユーザーを分けてた場合,これだとdefaultUserとしてデプロイされてしまうので,
--profile sisekiya-user
で運用したい
json/Age.json
Outdated
"data": "action=age&age=18" | ||
"label": "18~20", | ||
"displayText": "18~20", | ||
"data": "action=age&age=18-20" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
大学生世代は刻んだ方が良いかも
json/Club.json
Outdated
"type": "text", | ||
"text": "最も時間をかけてサークル・クラブ活動は何ですか?", | ||
"size": "lg", | ||
"weight": "regular" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"wrap": true
が無いと質問が最後まで見えない.
"type": "text", | ||
"text": "最も時間をかけたアルバイトや仕事を教えてください", | ||
"size": "lg", | ||
"weight": "regular" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"wrap": true
lambda_function.py
Outdated
|
||
#User情報を引数に受け取り、診断結果を返す関数。オバソン記述予定。 | ||
def matching(user_id): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
別のLambdaに移動予定
lambda_function.py
Outdated
#UserIDを取得 | ||
user_id = message_dist["events"][0]["source"]["userId"] | ||
#LineでのUser_IDは文字列を含むため、数値のみを抽出する。ちょっとこのままだと長すぎる。 | ||
user_num = re.sub("\\D", "", user_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
数値のみ抽出で,userの一意性が保たれるか
lambda_function.py
Outdated
if postback_action == "height": | ||
table.put_item( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DB処理は別Lambdaでやる予定
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修正内容
- このLambdaで不要なライブラリは一掃する(six / qr)
- (後はコメントを参照)
Conflictもしているので,適宜俺が修正しておく. |
f188d91
to
39b6c20
Compare
ひとまず,コンフリクト解消 |
Fix/20220503 add matching
やったこと
あとやること