Date | Time | User | Type | Name | Attribute | ||
---|---|---|---|---|---|---|---|
1 | 14th October 2024 | 12:35:33 | remus | - | - | generate_meta | |
Before
insert into
climber_meta (climber_id, value, display_value, climber_meta_key_id)
select
c.climber_id
,'/list/6/strong-british-male-trad-climbers'
,'Strong British Male Trad Climbers - #' || row_number() over (order by g.order_on desc, count(*) desc, min(order_dt(a.ascent_dt_start, a.ascent_dt_end)))::varchar
,27
from
ascents a
inner join climbers c
on a.climber_id = c.climber_id
inner join climbs cl
on a.climb_id = cl.climb_id
inner join grades g
on cl.grade_id = g.grade_id
inner join hardest_ascent ha
on c.climber_id = ha.climber_id
and cl.grade_id = ha.max_grade_id
inner join ascent_styles ast
on a.ascent_style_id = ast.ascent_style_id
where
a.deleted_on is null
and c.deleted_on is null
and cl.deleted_on is null
and cl.climb_type = 3
and c.gender = false
and c.nationality = 'GB'
and cl.grade_id >= 62
and c.exclude_reason is null
and cl.exclude_reason is null
and a.exclude_reason is null
and ast.ascent_successful = true
and not a.ascent_type_id in (6,7)
group by
c.climber_name
,g.grade_id
,c.climber_id
After
insert into
climber_meta (climber_id, value, display_value, climber_meta_key_id)
select
c.climber_id
,'/list/6/strong-british-male-trad-climbers'
,'Strong British Male Trad Climbers - #' || row_number() over (order by g.order_on desc, count(*) desc, min(order_dt(a.ascent_dt_start, a.ascent_dt_end)))::varchar
,27
from
ascents a
inner join climbers c
on a.climber_id = c.climber_id
inner join climbs cl
on a.climb_id = cl.climb_id
inner join grades g
on cl.grade_id = g.grade_id
inner join hardest_ascent ha
on c.climber_id = ha.climber_id
and cl.grade_id = ha.max_grade_id
inner join ascent_styles ast
on a.ascent_style_id = ast.ascent_style_id
where
a.deleted_on is null
and c.deleted_on is null
and cl.deleted_on is null
and cl.climb_type = 3
and c.gender = false
and c.country_id = 1
and cl.grade_id >= 62
and c.exclude_reason is null
and cl.exclude_reason is null
and a.exclude_reason is null
and ast.ascent_successful = true
and not a.ascent_type_id in (6,7)
group by
c.climber_name
,g.grade_id
,c.climber_id
|
|||||||
2 | 14th October 2024 | 12:35:33 | remus | - | - | list_definition | |
Before
select
'<a href="/climber/' || cast(c.climber_id as varchar) || '">' || c.climber_name || '</a>' as Climber
,g.grade as Grade
,string_agg('<a href="/climb/' || cast(cl.climb_id as varchar) || '">' || cl.climb_name || '</a>', ', ' order by order_dt(a.ascent_dt_start, a.ascent_dt_end)) as Climbs
from
ascents a
inner join climbers c
on a.climber_id = c.climber_id
inner join climbs cl
on a.climb_id = cl.climb_id
inner join grades g
on cl.grade_id = g.grade_id
inner join hardest_ascent ha
on c.climber_id = ha.climber_id
and cl.grade_id = ha.max_grade_id
inner join ascent_styles ast
on a.ascent_style_id = ast.ascent_style_id
where
a.deleted_on is null
and c.deleted_on is null
and cl.deleted_on is null
and cl.climb_type = 3
and c.gender = false
and c.nationality = 'GB'
and cl.grade_id >= 62
and c.exclude_reason is null
and cl.exclude_reason is null
and a.exclude_reason is null
and ast.ascent_successful = true
and not a.ascent_type_id in (6,7)
group by
c.climber_name
,g.grade_id
,c.climber_id
order by
g.grade_id desc
,count(*) desc
,min(order_dt(a.ascent_dt_start, a.ascent_dt_end))
After
select
'<a href="/climber/' || cast(c.climber_id as varchar) || '">' || c.climber_name || '</a>' as Climber
,g.grade as Grade
,string_agg('<a href="/climb/' || cast(cl.climb_id as varchar) || '">' || cl.climb_name || '</a>', ', ' order by order_dt(a.ascent_dt_start, a.ascent_dt_end)) as Climbs
from
ascents a
inner join climbers c
on a.climber_id = c.climber_id
inner join climbs cl
on a.climb_id = cl.climb_id
inner join grades g
on cl.grade_id = g.grade_id
inner join hardest_ascent ha
on c.climber_id = ha.climber_id
and cl.grade_id = ha.max_grade_id
inner join ascent_styles ast
on a.ascent_style_id = ast.ascent_style_id
where
a.deleted_on is null
and c.deleted_on is null
and cl.deleted_on is null
and cl.climb_type = 3
and c.gender = false
and c.country_id = 1
and cl.grade_id >= 62
and c.exclude_reason is null
and cl.exclude_reason is null
and a.exclude_reason is null
and ast.ascent_successful = true
and not a.ascent_type_id in (6,7)
group by
c.climber_name
,g.grade_id
,c.climber_id
order by
g.grade_id desc
,count(*) desc
,min(order_dt(a.ascent_dt_start, a.ascent_dt_end))
Diff
--- before
+++ after
@@ -23,7 +23,7 @@
and cl.deleted_on is null
and cl.climb_type = 3
and c.gender = false
- and c.nationality = 'GB'
+ and c.country_id = 1
and cl.grade_id >= 62
and c.exclude_reason is null
and cl.exclude_reason is null
|
|||||||
3 | 30th August 2024 | 06:45:10 | remus | - | - | list_type_name | |
Before
Misc.
After
Nationality
|
|||||||
4 | 30th August 2024 | 06:45:10 | remus | - | - | list_type_id | |
Before
5
After
4
|
|||||||
5 | 10th April 2024 | 05:57:23 | remus | - | - | list_definition | |
Before
select
'<a href="/climber/' || cast(c.climber_id as varchar) || '">' || c.climber_name || '</a>' as Climber
,g.grade as Grade
,string_agg('<a href="/climb/' || cast(cl.climb_id as varchar) || '">' || cl.climb_name || '</a>', ', ') as Climbs
from
ascents a
inner join climbers c
on a.climber_id = c.climber_id
inner join climbs cl
on a.climb_id = cl.climb_id
inner join grades g
on cl.grade_id = g.grade_id
inner join hardest_ascent ha
on c.climber_id = ha.climber_id
and cl.grade_id = ha.max_grade_id
inner join ascent_styles ast
on a.ascent_style_id = ast.ascent_style_id
where
a.deleted_on is null
and c.deleted_on is null
and cl.deleted_on is null
and cl.climb_type = 3
and c.gender = false
and c.nationality = 'GB'
and cl.grade_id >= 62
and c.exclude_reason is null
and cl.exclude_reason is null
and a.exclude_reason is null
and ast.ascent_successful = true
and not a.ascent_type_id in (6,7)
group by
c.climber_name
,g.grade_id
,c.climber_id
order by
g.grade_id desc
,count(*) desc
,min(order_dt(a.ascent_dt_start, a.ascent_dt_end))
After
select
'<a href="/climber/' || cast(c.climber_id as varchar) || '">' || c.climber_name || '</a>' as Climber
,g.grade as Grade
,string_agg('<a href="/climb/' || cast(cl.climb_id as varchar) || '">' || cl.climb_name || '</a>', ', ' order by order_dt(a.ascent_dt_start, a.ascent_dt_end)) as Climbs
from
ascents a
inner join climbers c
on a.climber_id = c.climber_id
inner join climbs cl
on a.climb_id = cl.climb_id
inner join grades g
on cl.grade_id = g.grade_id
inner join hardest_ascent ha
on c.climber_id = ha.climber_id
and cl.grade_id = ha.max_grade_id
inner join ascent_styles ast
on a.ascent_style_id = ast.ascent_style_id
where
a.deleted_on is null
and c.deleted_on is null
and cl.deleted_on is null
and cl.climb_type = 3
and c.gender = false
and c.nationality = 'GB'
and cl.grade_id >= 62
and c.exclude_reason is null
and cl.exclude_reason is null
and a.exclude_reason is null
and ast.ascent_successful = true
and not a.ascent_type_id in (6,7)
group by
c.climber_name
,g.grade_id
,c.climber_id
order by
g.grade_id desc
,count(*) desc
,min(order_dt(a.ascent_dt_start, a.ascent_dt_end))
Diff
--- before
+++ after
@@ -1,7 +1,7 @@
select
'<a href="/climber/' || cast(c.climber_id as varchar) || '">' || c.climber_name || '</a>' as Climber
,g.grade as Grade
- ,string_agg('<a href="/climb/' || cast(cl.climb_id as varchar) || '">' || cl.climb_name || '</a>', ', ') as Climbs
+ ,string_agg('<a href="/climb/' || cast(cl.climb_id as varchar) || '">' || cl.climb_name || '</a>', ', ' order by order_dt(a.ascent_dt_start, a.ascent_dt_end)) as Climbs
from
ascents a
|
|||||||
6 | 14th January 2024 | 08:21:49 | remus | - | - | generate_meta | |
Before
insert into
climber_meta (climber_id, value, display_value, climber_meta_key_id)
select
c.climber_id
,'/list/6/strong-british-male-trad-climbers'
,'Strong British Male Trad Climbers - #' || row_number() over (order by g.order_on desc, count(*) desc, min(order_dt(a.ascent_dt_start, a.ascent_dt_end)))::varchar
,27
from
ascents a
inner join climbers c
on a.climber_id = c.climber_id
inner join climbs cl
on a.climb_id = cl.climb_id
inner join grades g
on cl.grade_id = g.grade_id
inner join hardest_ascent ha
on c.climber_id = ha.climber_id
and cl.grade_id = ha.max_grade_id
inner join ascent_styles ast
on a.ascent_style_id = ast.ascent_style_id
where
a.deleted_on is null
and c.deleted_on is null
and cl.deleted_on is null
and cl.climb_type = 3
and c.gender = false
and c.nationality = 'GB'
and cl.grade_id >= 62
and c.exclude_reason is null
and cl.exclude_reason is null
and a.exclude_reason is null
and ast.ascent_successful = true
and not a.ascent_type_id = 6
group by
c.climber_name
,g.grade_id
,c.climber_id
After
insert into
climber_meta (climber_id, value, display_value, climber_meta_key_id)
select
c.climber_id
,'/list/6/strong-british-male-trad-climbers'
,'Strong British Male Trad Climbers - #' || row_number() over (order by g.order_on desc, count(*) desc, min(order_dt(a.ascent_dt_start, a.ascent_dt_end)))::varchar
,27
from
ascents a
inner join climbers c
on a.climber_id = c.climber_id
inner join climbs cl
on a.climb_id = cl.climb_id
inner join grades g
on cl.grade_id = g.grade_id
inner join hardest_ascent ha
on c.climber_id = ha.climber_id
and cl.grade_id = ha.max_grade_id
inner join ascent_styles ast
on a.ascent_style_id = ast.ascent_style_id
where
a.deleted_on is null
and c.deleted_on is null
and cl.deleted_on is null
and cl.climb_type = 3
and c.gender = false
and c.nationality = 'GB'
and cl.grade_id >= 62
and c.exclude_reason is null
and cl.exclude_reason is null
and a.exclude_reason is null
and ast.ascent_successful = true
and not a.ascent_type_id in (6,7)
group by
c.climber_name
,g.grade_id
,c.climber_id
|
|||||||
7 | 14th January 2024 | 08:21:49 | remus | - | - | list_definition | |
Before
select
'<a href="/climber/' || cast(c.climber_id as varchar) || '">' || c.climber_name || '</a>' as Climber
,g.grade as Grade
,string_agg('<a href="/climb/' || cast(cl.climb_id as varchar) || '">' || cl.climb_name || '</a>', ', ') as Climbs
from
ascents a
inner join climbers c
on a.climber_id = c.climber_id
inner join climbs cl
on a.climb_id = cl.climb_id
inner join grades g
on cl.grade_id = g.grade_id
inner join hardest_ascent ha
on c.climber_id = ha.climber_id
and cl.grade_id = ha.max_grade_id
inner join ascent_styles ast
on a.ascent_style_id = ast.ascent_style_id
where
a.deleted_on is null
and c.deleted_on is null
and cl.deleted_on is null
and cl.climb_type = 3
and c.gender = false
and c.nationality = 'GB'
and cl.grade_id >= 62
and c.exclude_reason is null
and cl.exclude_reason is null
and a.exclude_reason is null
and ast.ascent_successful = true
and not a.ascent_type_id = 6
group by
c.climber_name
,g.grade_id
,c.climber_id
order by
g.grade_id desc
,count(*) desc
,min(order_dt(a.ascent_dt_start, a.ascent_dt_end))
After
select
'<a href="/climber/' || cast(c.climber_id as varchar) || '">' || c.climber_name || '</a>' as Climber
,g.grade as Grade
,string_agg('<a href="/climb/' || cast(cl.climb_id as varchar) || '">' || cl.climb_name || '</a>', ', ') as Climbs
from
ascents a
inner join climbers c
on a.climber_id = c.climber_id
inner join climbs cl
on a.climb_id = cl.climb_id
inner join grades g
on cl.grade_id = g.grade_id
inner join hardest_ascent ha
on c.climber_id = ha.climber_id
and cl.grade_id = ha.max_grade_id
inner join ascent_styles ast
on a.ascent_style_id = ast.ascent_style_id
where
a.deleted_on is null
and c.deleted_on is null
and cl.deleted_on is null
and cl.climb_type = 3
and c.gender = false
and c.nationality = 'GB'
and cl.grade_id >= 62
and c.exclude_reason is null
and cl.exclude_reason is null
and a.exclude_reason is null
and ast.ascent_successful = true
and not a.ascent_type_id in (6,7)
group by
c.climber_name
,g.grade_id
,c.climber_id
order by
g.grade_id desc
,count(*) desc
,min(order_dt(a.ascent_dt_start, a.ascent_dt_end))
Diff
--- before
+++ after
@@ -29,7 +29,7 @@
and cl.exclude_reason is null
and a.exclude_reason is null
and ast.ascent_successful = true
- and not a.ascent_type_id = 6
+ and not a.ascent_type_id in (6,7)
group by
c.climber_name
|
|||||||
8 | 5th May 2023 | 13:11:34 | remus | - | - | - | |
Before
None
After
None
|
|||||||
9 | 5th May 2023 | 13:01:13 | remus | - | - | - | |
Before
None
After
None
|
|||||||
10 | 5th May 2023 | 12:39:41 | remus | - | - | - | |
Before
None
After
None
|
|||||||
11 | 11th June 2022 | 09:50:37 | remus | - | - | - | |
Before
None
After
None
|
|||||||
12 | 13th November 2021 | 18:34:37 | remus | - | - | - | |
Before
None
After
None
|
|||||||
13 | 19th October 2021 | 17:16:20 | remus | - | - | - | |
Before
None
After
None
|
|||||||
14 | 10th January 2021 | 17:15:41 | remus | - | - | - | |
Before
None
After
None
|