Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-2-capstone-design2
/
2014104149
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Graduate
2020-11-19 10:34:19 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8e152d543a27b805756fe99c7ae47fd06b9c710b
8e152d54
1 parent
cc62722b
Update rowcount method
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
README.md
register/register.cnf
requirements.txt
server/server.py
README.md
View file @
8e152d5
...
...
@@ -4,9 +4,9 @@
# Team
-
정해갑(컴퓨터공학과, 2014104149)
#
Usage
##
추가 예정
-
....
#
Environment
##
Server
-
AWS
# Demo
## Register
...
...
register/register.cnf
View file @
8e152d5
[server]
uri=ws://
localhost
:3000
uri=ws://
13.124.104.70
:3000
[register]
taking_time=0.2
image_size=160
...
...
requirements.txt
View file @
8e152d5
wheel
tensorflow==1.14
opencv-python==4.1.1.26
websockets
...
...
server/server.py
View file @
8e152d5
...
...
@@ -73,9 +73,9 @@ async def thread(websocket, path):
student_name
=
data
[
'student_name'
]
# 학생을 찾음
sql
=
"SELECT student_id FROM student WHERE student_id =
%
s;"
rows_count
=
cursor
.
execute
(
sql
,
(
student_id
))
cursor
.
execute
(
sql
,
(
student_id
))
# DB에 학생이 없으면 등록
if
rows_
count
==
0
:
if
cursor
.
row
count
==
0
:
sql
=
"INSERT INTO student(student_id, student_name) VALUES (
%
s,
%
s)"
cursor
.
execute
(
sql
,
(
student_id
,
student_name
))
sql
=
"INSERT INTO lecture_students(lecture_id, student_id) VALUES (
%
s,
%
s)"
...
...
Please
register
or
login
to post a comment