Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
55b9c6f3
authored
Nov 30, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
filtering of TSV data
parent
73c0750e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
sails/src/assets/scripts/modules/student/controllers/reports.js
sails/src/assets/scripts/modules/student/controllers/reports.js
View file @
55b9c6f3
...
...
@@ -88,8 +88,8 @@ dashboardControllers.controller('StudentReportsCtrl', function StudentReportsCtr
for
(
var
k
=
0
;
k
<
data
.
methods
[
i
].
instructions
[
j
].
working_sessions
.
length
;
k
++
)
{
for
(
var
l
=
0
;
l
<
data
.
methods
[
i
].
instructions
[
j
].
working_sessions
[
k
].
tries
.
length
;
l
++
)
{
for
(
var
m
=
0
;
m
<
data
.
methods
[
i
].
instructions
[
j
].
working_sessions
[
k
].
tries
[
l
].
actions
.
length
;
m
++
)
{
if
(
new
Date
(
data
.
methods
[
i
].
instructions
[
j
].
begin
).
getTime
()
>
$scope
.
reportDateSince
.
getTime
()
&&
new
Date
(
data
.
methods
[
i
].
instructions
[
j
].
begin
).
getTime
()
<
$scope
.
reportDateTo
.
getTime
()
&&
if
(
new
Date
(
data
.
methods
[
i
].
instructions
[
j
].
working_sessions
[
k
].
begin
).
getTime
()
>
$scope
.
reportDateSince
.
getTime
()
&&
new
Date
(
data
.
methods
[
i
].
instructions
[
j
].
working_sessions
[
k
].
begin
).
getTime
()
<
$scope
.
reportDateTo
.
getTime
()
&&
(
method_filter
==
-
1
||
(
method_filter
.
class
===
"method-opt"
&&
data
.
methods
[
i
].
id
==
method_filter
.
id
)
||
(
method_filter
.
class
===
"instruction-opt"
&&
data
.
methods
[
i
].
instructions
[
j
].
id
==
method_filter
.
id
)))
{
...
...
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