Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sterlite_custom_reports
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
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
suryakant
sterlite_custom_reports
Commits
848762b9
Commit
848762b9
authored
Oct 30, 2023
by
mohammed.akhib
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UPDATED CCPP QUERIES and CCPC
parent
cf93420f
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
249 additions
and
85 deletions
+249
-85
scripts/core/db/postgres/custom_report_query.py
scripts/core/db/postgres/custom_report_query.py
+222
-81
scripts/template/ccpc_report_template.py
scripts/template/ccpc_report_template.py
+23
-0
scripts/template/ccpp_report_template.py
scripts/template/ccpp_report_template.py
+4
-4
No files found.
scripts/core/db/postgres/custom_report_query.py
View file @
848762b9
This diff is collapsed.
Click to expand it.
scripts/template/ccpc_report_template.py
View file @
848762b9
...
@@ -25,10 +25,15 @@ class CCPCReportTemplate:
...
@@ -25,10 +25,15 @@ class CCPCReportTemplate:
"MTD"
,
"MTD"
,
],
],
"query"
:
{
"query"
:
{
"Production"
:[
"Production"
:[
SterliteCCPCQuery
.
Production
.
QUERY_1
,
SterliteCCPCQuery
.
Production
.
QUERY_1
,
SterliteCCPCQuery
.
Production
.
QUERY_2
SterliteCCPCQuery
.
Production
.
QUERY_2
],
],
"Lpg"
:
[
SterliteCCPCQuery
.
Lpg
.
QUERY_1
,
SterliteCCPCQuery
.
Lpg
.
QUERY_2
],
"BariumSulphateP"
:[
"BariumSulphateP"
:[
SterliteCCPCQuery
.
BariumSulphateP
.
QUERY_1
,
SterliteCCPCQuery
.
BariumSulphateP
.
QUERY_1
,
SterliteCCPCQuery
.
BariumSulphateP
.
QUERY_2
SterliteCCPCQuery
.
BariumSulphateP
.
QUERY_2
...
@@ -37,6 +42,10 @@ class CCPCReportTemplate:
...
@@ -37,6 +42,10 @@ class CCPCReportTemplate:
SterliteCCPCQuery
.
Sodiumsilicate
.
QUERY_1
,
SterliteCCPCQuery
.
Sodiumsilicate
.
QUERY_1
,
SterliteCCPCQuery
.
Sodiumsilicate
.
QUERY_2
SterliteCCPCQuery
.
Sodiumsilicate
.
QUERY_2
],
],
"Power"
:[
SterliteCCPCQuery
.
Power1
.
QUERY_1
,
SterliteCCPCQuery
.
Power1
.
QUERY_2
],
"BLISTER"
:
[
"BLISTER"
:
[
SterliteCCPCQuery
.
BLISTER
.
QUERY_1
,
SterliteCCPCQuery
.
BLISTER
.
QUERY_1
,
SterliteCCPCQuery
.
BLISTER
.
QUERY_2
,
SterliteCCPCQuery
.
BLISTER
.
QUERY_2
,
...
@@ -109,6 +118,18 @@ class CCPCReportTemplate:
...
@@ -109,6 +118,18 @@ class CCPCReportTemplate:
SterliteCCPCQuery
.
ANODEREJECTION
.
QUERY_1
,
SterliteCCPCQuery
.
ANODEREJECTION
.
QUERY_1
,
SterliteCCPCQuery
.
ANODEREJECTION
.
QUERY_2
,
SterliteCCPCQuery
.
ANODEREJECTION
.
QUERY_2
,
],
],
"AnodeInCCPCYard"
:[
SterliteCCPCQuery
.
AnodeInCCPCYard
.
QUERY_1
,
SterliteCCPCQuery
.
AnodeInCCPCYard
.
QUERY_2
],
"Day02"
:[
SterliteCCPCQuery
.
Day02
.
QUERY_1
,
SterliteCCPCQuery
.
Day02
.
QUERY_2
],
"DayAs"
:[
SterliteCCPCQuery
.
DayAs
.
QUERY_1
,
SterliteCCPCQuery
.
DayAs
.
QUERY_2
]
},
},
"data"
:
[],
"data"
:
[],
"data_column"
:
[
"particulars"
,
"unit"
,
"on_date"
,
"mtd"
,
"data_column"
:
[
"particulars"
,
"unit"
,
"on_date"
,
"mtd"
,
...
@@ -408,6 +429,8 @@ class CCPCReportTemplate:
...
@@ -408,6 +429,8 @@ class CCPCReportTemplate:
"REASON FOR STOPAGE"
"REASON FOR STOPAGE"
],
],
"query"
:
{
"query"
:
{
"ActivityTime"
:[
SterliteCCPCQuery
.
ActivityTime
.
QUERY_1
]
},
},
"data"
:
[],
"data"
:
[],
"data_column"
:
[
"data_column"
:
[
...
...
scripts/template/ccpp_report_template.py
View file @
848762b9
...
@@ -32,8 +32,8 @@ class CCPPReportTemplate:
...
@@ -32,8 +32,8 @@ class CCPPReportTemplate:
SterliteCCPPQuery
.
Production
.
QUERY_2
SterliteCCPPQuery
.
Production
.
QUERY_2
],
],
"Lpg"
:
[
"Lpg"
:
[
#
SterliteCCPPQuery.Lpg.QUERY_1,
SterliteCCPPQuery
.
Lpg
.
QUERY_1
,
#
SterliteCCPPQuery.Lpg.QUERY_2,
SterliteCCPPQuery
.
Lpg
.
QUERY_2
,
],
],
"BariumSulphate"
:
[
"BariumSulphate"
:
[
SterliteCCPPQuery
.
BariumSulphate
.
QUERY_1
,
SterliteCCPPQuery
.
BariumSulphate
.
QUERY_1
,
...
@@ -45,8 +45,8 @@ class CCPPReportTemplate:
...
@@ -45,8 +45,8 @@ class CCPPReportTemplate:
SterliteCCPPQuery
.
SodiumSilicate
.
QUERY_2
,
SterliteCCPPQuery
.
SodiumSilicate
.
QUERY_2
,
],
],
"Power"
:
[
"Power"
:
[
#
SterliteCCPPQuery.Power.QUERY_1,
SterliteCCPPQuery
.
Power
.
QUERY_1
,
#
SterliteCCPPQuery.Power.QUERY_2,
SterliteCCPPQuery
.
Power
.
QUERY_2
,
],
],
"KanshakiBlister"
:
[
"KanshakiBlister"
:
[
SterliteCCPPQuery
.
KanshakiBlister
.
QUERY_1
,
SterliteCCPPQuery
.
KanshakiBlister
.
QUERY_1
,
...
...
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