Skip to content
Snippets Groups Projects
Commit 2d646254 authored by Anton Bagliy's avatar Anton Bagliy
Browse files

Merge branch 'issue448_export_pass' into 'develop'

ADD: put pass/absence code in view to use in export #448

See merge request it-lab/grade!144
parents d4130326 0eb85b09
Branches
No related merge requests found
......@@ -16,8 +16,8 @@ CREATE OR REPLACE VIEW public.view_final_report
when rt.Rate is not null then rt.Rate
when rt.Rate is null then
case epo."type"
when 'pass' then 0
when 'absence' then 0
when 'pass' then -2
when 'absence' then -1
END
END) as "rate"
FROM view_roadmap AS vr
......@@ -34,7 +34,7 @@ CREATE OR REPLACE VIEW public.view_final_report
when rt.Rate is null then
case epo."type"
when 'pass' then 0
when 'absence' then 0
when 'absence' then -1
END
END) as "rate"
FROM view_roadmap AS vr
......@@ -51,7 +51,7 @@ CREATE OR REPLACE VIEW public.view_final_report
when rt.Rate is null then
case epo."type"
when 'pass' then 0
when 'absence' then 0
when 'absence' then -1
END
END) as "rate"
FROM view_roadmap AS vr
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment