Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
21_22-J 38
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
21_22-J 38
21_22-J 38
Commits
f4ef41d7
Commit
f4ef41d7
authored
May 02, 2022
by
W.D.R.P. Sandeepa
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'it18218640' into 'master'
It18218640 See merge request
!183
parents
cdf40907
5787e6e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
API/app.py
API/app.py
+4
-4
frontend/src/screen/Home.js
frontend/src/screen/Home.js
+1
-1
No files found.
API/app.py
View file @
f4ef41d7
...
@@ -3,8 +3,8 @@ from flask import Flask, render_template, request, jsonify, make_response
...
@@ -3,8 +3,8 @@ from flask import Flask, render_template, request, jsonify, make_response
from
API.model.color.colorModel
import
save_color_session_details
,
sendPredictData
from
API.model.color.colorModel
import
save_color_session_details
,
sendPredictData
from
API.model.readModel
import
save_activity_details
,
save_session_details
from
API.model.readModel
import
save_activity_details
,
save_session_details
from
API.model.userModel
import
getUser
,
saveUserSession
,
logoutUser
from
API.model.userModel
import
getUser
,
saveUserSession
,
logoutUser
from
API.model.color.colorModel
import
get_color_activities1
,
get_color_activities2
,
get_color_activity_result
,
\
from
API.model.color.colorModel
import
*
storeResult
,
save_color_session_details
from
API.model.color.colorModel
import
*
from
flask
import
Flask
,
redirect
,
url_for
,
render_template
,
request
,
jsonify
,
make_response
from
flask
import
Flask
,
redirect
,
url_for
,
render_template
,
request
,
jsonify
,
make_response
import
random
import
random
import
os
import
os
...
@@ -45,9 +45,9 @@ def getColorActivitiesResult():
...
@@ -45,9 +45,9 @@ def getColorActivitiesResult():
userId
=
req
[
'userId'
]
userId
=
req
[
'userId'
]
# print("data_dic")
# print("data_dic")
result
=
get_color_activity_result
(
userId
)
#
result = get_color_activity_result(userId)
return
result
return
userId
# Predict route
# Predict route
...
...
frontend/src/screen/Home.js
View file @
f4ef41d7
...
@@ -12,7 +12,7 @@ export default function Home({ navigation }){
...
@@ -12,7 +12,7 @@ export default function Home({ navigation }){
React
.
useEffect
(()
=>
{
React
.
useEffect
(()
=>
{
AsyncStorage
.
removeItem
(
'
colorToken
'
);
//
AsyncStorage.removeItem('colorToken');
const
unsubscribe
=
navigation
.
addListener
(
"
focus
"
,
()
=>
{
const
unsubscribe
=
navigation
.
addListener
(
"
focus
"
,
()
=>
{
Orientation
.
unlockAllOrientations
();
Orientation
.
unlockAllOrientations
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment