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
2c192c66
Commit
2c192c66
authored
May 02, 2022
by
W.D.R.P. Sandeepa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change
parent
30bcb5a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
API/app.py
API/app.py
+3
-3
frontend/src/screen/Home.js
frontend/src/screen/Home.js
+1
-1
No files found.
API/app.py
View file @
2c192c66
...
...
@@ -3,7 +3,7 @@ from flask import Flask, render_template, request, jsonify, make_response
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.userModel
import
getUser
,
saveUserSession
,
logoutUser
from
API.model.color.colorModel
import
get_color_activities1
,
get_color_activities2
,
get_color_activity_result
,
storeResult
,
save_color_session_details
from
API.model.color.colorModel
import
*
from
flask
import
Flask
,
redirect
,
url_for
,
render_template
,
request
,
jsonify
,
make_response
import
random
import
os
...
...
@@ -46,9 +46,9 @@ def getColorActivitiesResult():
userId
=
req
[
'userId'
]
# print("data_dic")
result
=
get_color_activity_result
(
userId
)
#
result = get_color_activity_result(userId)
return
result
return
userId
# Predict route
...
...
frontend/src/screen/Home.js
View file @
2c192c66
...
...
@@ -12,7 +12,7 @@ export default function Home({ navigation }){
React
.
useEffect
(()
=>
{
AsyncStorage
.
removeItem
(
'
colorToken
'
);
//
AsyncStorage.removeItem('colorToken');
const
unsubscribe
=
navigation
.
addListener
(
"
focus
"
,
()
=>
{
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