-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwoodendoll.py
161 lines (141 loc) · 5.53 KB
/
woodendoll.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
from connect import *
@app.route('/woodendoll_1', methods=['POST'])
def woodendoll_1():
content = request.get_json()
user_id = content['userRequest']['user']['id']
block_id = content['userRequest']['block']['id']
# save_block(user_id, block_id)
return response_from("""첫 번째 목각인형 그림이다.""", imageUrl = images.problem_4[1],
quickReplies = [
{
"label": "돌아간다",
"action": 'block',
"blockId": blockId.지하실_3
}
])
@app.route('/woodendoll_2', methods=['POST'])
def woodendoll_2():
content = request.get_json()
user_id = content['userRequest']['user']['id']
block_id = content['userRequest']['block']['id']
# save_block(user_id, block_id)
return response_from("""두 번째 목각인형 그림이다.""", imageUrl = images.problem_4[2],
quickReplies = [
{
"label": "돌아간다",
"action": 'block',
"blockId": blockId.지하실_3
}
])
@app.route('/woodendoll_3', methods=['POST'])
def woodendoll_3():
content = request.get_json()
user_id = content['userRequest']['user']['id']
block_id = content['userRequest']['block']['id']
# save_block(user_id, block_id)
return response_from("""세 번째 목각인형 그림이다.""", imageUrl = images.problem_4[3],
quickReplies = [
{
"label": "돌아간다",
"action": 'block',
"blockId": blockId.지하실_3
}
])
@app.route('/woodendoll_4', methods=['POST'])
def woodendoll_4():
content = request.get_json()
user_id = content['userRequest']['user']['id']
block_id = content['userRequest']['block']['id']
# save_block(user_id, block_id)
return response_from("""네 번째 목각인형 그림이다.""", imageUrl = images.problem_4[4],
quickReplies = [
{
"label": "돌아간다",
"action": 'block',
"blockId": blockId.지하실_3
}
])
@app.route('/woodendoll_5', methods=['POST'])
def woodendoll_5():
content = request.get_json()
user_id = content['userRequest']['user']['id']
block_id = content['userRequest']['block']['id']
# save_block(user_id, block_id)
return response_from("""다섯 번째 목각인형 그림이다.""", imageUrl = images.problem_4[5],
quickReplies = [
{
"label": "돌아간다",
"action": 'block',
"blockId": blockId.지하실_3
}
])
@app.route('/woodendoll_6', methods=['POST'])
def woodendoll_6():
content = request.get_json()
user_id = content['userRequest']['user']['id']
block_id = content['userRequest']['block']['id']
# save_block(user_id, block_id)
return response_from("""여섯 번째 목각인형 그림이다.""", imageUrl = images.problem_4[6],
quickReplies = [
{
"label": "돌아간다",
"action": 'block',
"blockId": blockId.지하실_3
}
])
@app.route('/woodendoll_7', methods=['POST'])
def woodendoll_7():
content = request.get_json()
user_id = content['userRequest']['user']['id']
block_id = content['userRequest']['block']['id']
# save_block(user_id, block_id)
return response_from("""일곱 번째 목각인형 그림이다.""", imageUrl = images.problem_4[7],
quickReplies = [
{
"label": "돌아간다",
"action": 'block',
"blockId": blockId.지하실_3
}
])
@app.route('/woodendoll_8', methods=['POST'])
def woodendoll_8():
content = request.get_json()
user_id = content['userRequest']['user']['id']
block_id = content['userRequest']['block']['id']
# save_block(user_id, block_id)
return response_from("""여덟 번째 목각인형 그림이다.""", imageUrl = images.problem_4[8],
quickReplies = [
{
"label": "돌아간다",
"action": 'block',
"blockId": blockId.지하실_3
}
])
@app.route('/woodendoll_9', methods=['POST'])
def woodendoll_9():
content = request.get_json()
user_id = content['userRequest']['user']['id']
block_id = content['userRequest']['block']['id']
# save_block(user_id, block_id)
return response_from("""아홉 번째 목각인형 그림이다.""", imageUrl = images.problem_4[9],
quickReplies = [
{
"label": "돌아간다",
"action": 'block',
"blockId": blockId.지하실_3
}
])
@app.route('/woodendoll_10', methods=['POST'])
def woodendoll_10():
content = request.get_json()
user_id = content['userRequest']['user']['id']
block_id = content['userRequest']['block']['id']
# save_block(user_id, block_id)
return response_from("""열 번째 목각인형 그림이다.""", imageUrl = images.problem_4[10],
quickReplies = [
{
"label": "돌아간다",
"action": 'block',
"blockId": blockId.지하실_3
}
])