Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoInt_SIDT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoInt_SIDT
Commits
f11c56d9
Commit
f11c56d9
authored
Mar 14, 2019
by
Ulises Morales Ramírez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
L2ASCL v2
parent
440c8c06
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
views.py
reports/views.py
+3
-7
No files found.
reports/views.py
View file @
f11c56d9
...
@@ -28,8 +28,6 @@ USERS_PATH = config['PATHS']['PATH_USERS']
...
@@ -28,8 +28,6 @@ USERS_PATH = config['PATHS']['PATH_USERS']
###########################################################
###########################################################
def
report_L2ASCL
(
request
,
report
,
purchase_id
):
def
report_L2ASCL
(
request
,
report
,
purchase_id
):
scl_data_path
=
USERS_PATH
+
request
.
user
.
email
+
"/"
+
purchase_id
+
"/"
+
report
+
".json"
scl_data_path
=
USERS_PATH
+
request
.
user
.
email
+
"/"
+
purchase_id
+
"/"
+
report
+
".json"
...
@@ -99,8 +97,7 @@ def report_L2ASCL(request, report, purchase_id):
...
@@ -99,8 +97,7 @@ def report_L2ASCL(request, report, purchase_id):
"labels"
:
graphData
[
'data'
][
'labels'
]})
"labels"
:
graphData
[
'data'
][
'labels'
]})
# -------------------------------------------------------------------------------
# -------------------------------------------------------------------------------def Reports(request):
def
Reports
(
request
):
def
Reports
(
request
):
progress
=
0
progress
=
0
...
@@ -396,8 +393,7 @@ def PDFGenerator(request, ruta, reporteDir, datasets):
...
@@ -396,8 +393,7 @@ def PDFGenerator(request, ruta, reporteDir, datasets):
c
.
showPage
()
c
.
showPage
()
c
.
save
()
c
.
save
()
pass
pass
#-----------------------------------------------------------------------------------------------------------------
#---------------------------------------------------------------------------
def
ProcessChartData
(
path
):
def
ProcessChartData
(
path
):
with
open
(
path
)
as
f
:
with
open
(
path
)
as
f
:
json_data
=
OrderedDict
(
json
.
load
(
f
))
json_data
=
OrderedDict
(
json
.
load
(
f
))
...
@@ -444,4 +440,4 @@ def ProcessChartData(path):
...
@@ -444,4 +440,4 @@ def ProcessChartData(path):
label
=
graphData
[
'data'
][
'labels'
][
0
]
label
=
graphData
[
'data'
][
'labels'
][
0
]
defaultLabel
=
graphData
[
'data'
][
'labels'
][
0
]
defaultLabel
=
graphData
[
'data'
][
'labels'
][
0
]
defaultDataset
=
label
[
0
:
4
]
+
"/"
+
label
[
4
:
6
]
+
"/"
+
label
[
6
:]
defaultDataset
=
label
[
0
:
4
]
+
"/"
+
label
[
4
:
6
]
+
"/"
+
label
[
6
:]
return
graphData
,
label
,
defaultLabel
,
defaultDataset
return
graphData
,
label
,
defaultLabel
,
defaultDataset
\ No newline at end of file
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