Skip to content

Commit

Permalink
Fix python 3.8 warnings related to identity checks
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismiceli committed Apr 17, 2021
1 parent 39125e0 commit 83a7f32
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 54 deletions.
18 changes: 9 additions & 9 deletions src/footer.inc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#end if
</table>

#if $Extras.Footer.about is not ""
#if $Extras.Footer.about != ""
<p>$Extras.Footer.about</p>
#end if

Expand All @@ -50,11 +50,11 @@
## Grid column
<div class="col-md-3 mb-md-0 mb-3">

#if $Extras.Footer.box_title is not ""
#if $Extras.Footer.box_title != ""
<h5 class="text-uppercase">$Extras.Footer.box_title</h5>
#end if

#if $Extras.Footer.box_content is not ""
#if $Extras.Footer.box_content != ""
<p>$Extras.Footer.box_content</p>
#end if
</div>
Expand All @@ -67,22 +67,22 @@
<h5 class="text-uppercase">$Extras.Translations[$Extras.language].links</h5>

<ul class="list-unstyled">
#if $Extras.Footer.link1_url is not ""
#if $Extras.Footer.link1_url != ""
<li>
<a href="$Extras.Footer.link1_url" target="_blank" rel="noopener">$Extras.Footer.link1_label</a>
</li>
#end if
#if $Extras.Footer.link2_url is not ""
#if $Extras.Footer.link2_url != ""
<li>
<a href="$Extras.Footer.link2_url" target="_blank" rel="noopener">$Extras.Footer.link2_label</a>
</li>
#end if
#if $Extras.Footer.link3_url is not ""
#if $Extras.Footer.link3_url != ""
<li>
<a href="$Extras.Footer.link3_url" target="_blank" rel="noopener">$Extras.Footer.link3_label</a>
</li>
#end if
#if $Extras.Footer.link4_url is not ""
#if $Extras.Footer.link4_url != ""
<li>
<a href="$Extras.Footer.link4_url" target="_blank" rel="noopener">$Extras.Footer.link4_label</a>
</li>
Expand Down Expand Up @@ -118,11 +118,11 @@
#end if
#end if

#if $Extras.Footer.imprint_url is not ""
#if $Extras.Footer.imprint_url != ""
<span class="mx-2">&bull;</span>
<a href="$Extras.Footer.imprint_url" target="_blank">$Extras.Footer.imprint_label</a>
#end if
#if $Extras.Footer.privacy_url is not ""
#if $Extras.Footer.privacy_url != ""
<span class="mx-2">&bull;</span>
<a href="$Extras.Footer.privacy_url" target="_blank">$Extras.Footer.privacy_label</a>
#end if
Expand Down
4 changes: 2 additions & 2 deletions src/head.inc
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@

## Appearance settings

#if $Extras.Appearance.lo_value_color is not ""
#if $Extras.Appearance.lo_value_color != ""
<style>
.lo-text {
color: $Extras.Appearance.lo_value_color !important;
}
</style>
#end if

#if $Extras.Appearance.hi_value_color is not ""
#if $Extras.Appearance.hi_value_color != ""
<style>
.hi-text {
color: $Extras.Appearance.hi_value_color !important;
Expand Down
20 changes: 10 additions & 10 deletions src/header.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<span class="navbar-brand d-flex">
#if $Extras.Header.show_logo == "yes"
<a class="mr-2" href="index.html">
#if $Extras.Header.custom_logo_url is not ""
#if $Extras.Header.custom_logo_url != ""
<img src="$Extras.Header.custom_logo_url" style="width: 4rem">
#else
<img src="img/icon-alpha-1x.png" srcset="img/icon-alpha-1x.png 1x, img/icon-alpha-2x.png 2x" style="width: 4rem">
Expand All @@ -28,7 +28,7 @@
<ul class="navbar-nav ml-auto mr-auto">

#if $Extras.Header.current_nav_link == "yes"
#if $active_nav is 'current'
#if $active_nav == 'current'
<li class="nav-item active mr-3">
<a class="nav-link" href="index.html">$Extras.Translations[$Extras.language].current</a>
</li>
Expand All @@ -40,7 +40,7 @@
#end if

#if $Extras.Header.yesterday_nav_link == "yes"
#if $active_nav is 'yesterday'
#if $active_nav == 'yesterday'
<li class="nav-item active mr-3">
<a class="nav-link" href="yesterday.html">$Extras.Translations[$Extras.language].yesterday</a>
</li>
Expand All @@ -52,7 +52,7 @@
#end if

#if $Extras.Header.week_nav_link == "yes"
#if $active_nav is 'week'
#if $active_nav == 'week'
<li class="nav-item active mr-3">
<a class="nav-link" href="week.html">$Extras.Translations[$Extras.language].week</a>
</li>
Expand All @@ -64,7 +64,7 @@
#end if

#if $Extras.Header.month_nav_link == "yes"
#if $active_nav is 'month'
#if $active_nav == 'month'
<li class="nav-item active mr-3">
<a class="nav-link" href="month.html">$Extras.Translations[$Extras.language].month</a>
</li>
Expand All @@ -76,7 +76,7 @@
#end if

#if $Extras.Header.year_nav_link == "yes"
#if $active_nav is 'year'
#if $active_nav == 'year'
<li class="nav-item active mr-3">
<a class="nav-link" href="year.html">$Extras.Translations[$Extras.language].year</a>
</li>
Expand All @@ -88,7 +88,7 @@
#end if

#if $Extras.Header.archive_nav_link == "yes"
#if $active_nav is 'archive'
#if $active_nav == 'archive'
<li class="nav-item active mr-3">
<a class="nav-link" href="archive.html">$Extras.Translations[$Extras.language].archive</a>
</li>
Expand All @@ -100,7 +100,7 @@
#end if

#if $Extras.Header.almanac_nav_link == "yes"
#if $active_nav is 'almanac'
#if $active_nav == 'almanac'
<li class="nav-item active mr-3">
<a class="nav-link" href="almanac.html">$Extras.Translations[$Extras.language].almanac</a>
</li>
Expand All @@ -111,13 +111,13 @@
#end if
#end if

#if $Extras.Header.custom1_url is not ""
#if $Extras.Header.custom1_url != ""
<li class="nav-item mr-3">
<a class="nav-link" href="$Extras.Header.custom1_url">$Extras.Header.custom1_label</a>
</li>
#end if

#if $Extras.Header.custom2_url is not ""
#if $Extras.Header.custom2_url != ""
<li class="nav-item mr-3">
<a class="nav-link" href="$Extras.Header.custom2_url">$Extras.Header.custom2_label</a>
</li>
Expand Down
6 changes: 3 additions & 3 deletions src/index.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -241,19 +241,19 @@ new ApexCharts(document.querySelector('#$id'), {
name: "$getVar('obs.label.' + series1)",
data: [ $getChartData(series1, column) ]
}
#if $series2 is not "" and $getVar('day.' + series2 + '.has_data')
#if $series2 != "" and $getVar('day.' + series2 + '.has_data')
,{
name: "$getVar('obs.label.' + series2)",
data: [ $getChartData(series2, column) ]
}
#end if
#if $series3 is not "" and $getVar('day.' + series3 + '.has_data')
#if $series3 != "" and $getVar('day.' + series3 + '.has_data')
,{
name: "$getVar('obs.label.' + series3)",
data: [ $getChartData(series3, column) ]
}
#end if
#if $series4 is not "" and $getVar('day.' + series4 + '.has_data')
#if $series4 != "" and $getVar('day.' + series4 + '.has_data')
,{
name: "$getVar('obs.label.' + series4)",
data: [ $getChartData(series4, column) ]
Expand Down
12 changes: 6 additions & 6 deletions src/month-%Y-%m.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -233,19 +233,19 @@ new ApexCharts(document.querySelector('#$id'), {
name: "$getVar('obs.label.' + series1) Max",
data: [ $getChartData(series1, 'max') ]
}
#if $series2 is not "" and $getVar('month.' + series2 + '.has_data')
#if $series2 != "" and $getVar('month.' + series2 + '.has_data')
,{
name: "$getVar('obs.label.' + series2)",
data: [ $getChartData(series2, column) ]
}
#end if
#if $series3 is not "" and $getVar('month.' + series3 + '.has_data')
#if $series3 != "" and $getVar('month.' + series3 + '.has_data')
,{
name: "$getVar('obs.label.' + series3)",
data: [ $getChartData(series3, column) ]
}
#end if
#if $series4 is not "" and $getVar('month.' + series4 + '.has_data')
#if $series4 != "" and $getVar('month.' + series4 + '.has_data')
,{
name: "$getVar('obs.label.' + series4)",
data: [ $getChartData(series4, column) ]
Expand All @@ -270,19 +270,19 @@ new ApexCharts(document.querySelector('#$id'), {
name: "$getVar('obs.label.' + series1)",
data: [ $getChartData(series1, column) ]
}
#if $series2 is not "" and $getVar('month.' + series2 + '.has_data')
#if $series2 != "" and $getVar('month.' + series2 + '.has_data')
,{
name: "$getVar('obs.label.' + series2)",
data: [ $getChartData(series2, column) ]
}
#end if
#if $series3 is not "" and $getVar('month.' + series3 + '.has_data')
#if $series3 != "" and $getVar('month.' + series3 + '.has_data')
,{
name: "$getVar('obs.label.' + series3)",
data: [ $getChartData(series3, column) ]
}
#end if
#if $series4 is not "" and $getVar('month.' + series4 + '.has_data')
#if $series4 != "" and $getVar('month.' + series4 + '.has_data')
,{
name: "$getVar('obs.label.' + series4)",
data: [ $getChartData(series4, column) ]
Expand Down
6 changes: 3 additions & 3 deletions src/month.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -223,19 +223,19 @@ new ApexCharts(document.querySelector('#$id'), {
name: "$getVar('obs.label.' + series1)",
data: [ $getChartData(series1, column) ]
}
#if $series2 is not "" and $getVar('month.' + series2 + '.has_data')
#if $series2 != "" and $getVar('month.' + series2 + '.has_data')
,{
name: "$getVar('obs.label.' + series2)",
data: [ $getChartData(series2, column) ]
}
#end if
#if $series3 is not "" and $getVar('month.' + series3 + '.has_data')
#if $series3 != "" and $getVar('month.' + series3 + '.has_data')
,{
name: "$getVar('obs.label.' + series3)",
data: [ $getChartData(series3, column) ]
}
#end if
#if $series4 is not "" and $getVar('month.' + series4 + '.has_data')
#if $series4 != "" and $getVar('month.' + series4 + '.has_data')
,{
name: "$getVar('obs.label.' + series4)",
data: [ $getChartData(series4, column) ]
Expand Down
6 changes: 3 additions & 3 deletions src/week.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -223,19 +223,19 @@ new ApexCharts(document.querySelector('#$id'), {
name: "$getVar('obs.label.' + series1)",
data: [ $getChartData(series1, column) ]
}
#if $series2 is not "" and $getVar('week.' + series2 + '.has_data')
#if $series2 != "" and $getVar('week.' + series2 + '.has_data')
,{
name: "$getVar('obs.label.' + series2)",
data: [ $getChartData(series2, column) ]
}
#end if
#if $series3 is not "" and $getVar('week.' + series3 + '.has_data')
#if $series3 != "" and $getVar('week.' + series3 + '.has_data')
,{
name: "$getVar('obs.label.' + series3)",
data: [ $getChartData(series3, column) ]
}
#end if
#if $series4 is not "" and $getVar('week.' + series4 + '.has_data')
#if $series4 != "" and $getVar('week.' + series4 + '.has_data')
,{
name: "$getVar('obs.label.' + series4)",
data: [ $getChartData(series4, column) ]
Expand Down
12 changes: 6 additions & 6 deletions src/year-%Y.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -277,19 +277,19 @@ new ApexCharts(document.querySelector('#$id'), {
name: "$getVar('obs.label.' + series1) $Extras.Translations[$Extras.language].max",
data: [ $getChartData(series1, 'max') ]
}
#if $series2 is not "" and $getVar('year.' + series2 + '.has_data')
#if $series2 != "" and $getVar('year.' + series2 + '.has_data')
,{
name: "$getVar('obs.label.' + series2)",
data: [ $getChartData(series2, column) ]
}
#end if
#if $series3 is not "" and $getVar('year.' + series3 + '.has_data')
#if $series3 != "" and $getVar('year.' + series3 + '.has_data')
,{
name: "$getVar('obs.label.' + series3)",
data: [ $getChartData(series3, column) ]
}
#end if
#if $series4 is not "" and $getVar('year.' + series4 + '.has_data')
#if $series4 != "" and $getVar('year.' + series4 + '.has_data')
,{
name: "$getVar('obs.label.' + series4)",
data: [ $getChartData(series4, column) ]
Expand All @@ -314,19 +314,19 @@ new ApexCharts(document.querySelector('#$id'), {
name: "$getVar('obs.label.' + series1)",
data: [ $getChartData(series1, column) ]
}
#if $series2 is not "" and $getVar('year.' + series2 + '.has_data')
#if $series2 != "" and $getVar('year.' + series2 + '.has_data')
,{
name: "$getVar('obs.label.' + series2)",
data: [ $getChartData(series2, column) ]
}
#end if
#if $series3 is not "" and $getVar('year.' + series3 + '.has_data')
#if $series3 != "" and $getVar('year.' + series3 + '.has_data')
,{
name: "$getVar('obs.label.' + series3)",
data: [ $getChartData(series3, column) ]
}
#end if
#if $series4 is not "" and $getVar('year.' + series4 + '.has_data')
#if $series4 != "" and $getVar('year.' + series4 + '.has_data')
,{
name: "$getVar('obs.label.' + series4)",
data: [ $getChartData(series4, column) ]
Expand Down
12 changes: 6 additions & 6 deletions src/year.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -231,19 +231,19 @@ new ApexCharts(document.querySelector('#$id'), {
name: "$getVar('obs.label.' + series1) $Extras.Translations[$Extras.language].max",
data: [ $getChartData(series1, 'max') ]
}
#if $series2 is not "" and $getVar('year.' + series2 + '.has_data')
#if $series2 != "" and $getVar('year.' + series2 + '.has_data')
,{
name: "$getVar('obs.label.' + series2)",
data: [ $getChartData(series2, column) ]
}
#end if
#if $series3 is not "" and $getVar('year.' + series3 + '.has_data')
#if $series3 != "" and $getVar('year.' + series3 + '.has_data')
,{
name: "$getVar('obs.label.' + series3)",
data: [ $getChartData(series3, column) ]
}
#end if
#if $series4 is not "" and $getVar('year.' + series4 + '.has_data')
#if $series4 != "" and $getVar('year.' + series4 + '.has_data')
,{
name: "$getVar('obs.label.' + series4)",
data: [ $getChartData(series4, column) ]
Expand All @@ -268,19 +268,19 @@ new ApexCharts(document.querySelector('#$id'), {
name: "$getVar('obs.label.' + series1)",
data: [ $getChartData(series1, column) ]
}
#if $series2 is not "" and $getVar('year.' + series2 + '.has_data')
#if $series2 != "" and $getVar('year.' + series2 + '.has_data')
,{
name: "$getVar('obs.label.' + series2)",
data: [ $getChartData(series2, column) ]
}
#end if
#if $series3 is not "" and $getVar('year.' + series3 + '.has_data')
#if $series3 != "" and $getVar('year.' + series3 + '.has_data')
,{
name: "$getVar('obs.label.' + series3)",
data: [ $getChartData(series3, column) ]
}
#end if
#if $series4 is not "" and $getVar('year.' + series4 + '.has_data')
#if $series4 != "" and $getVar('year.' + series4 + '.has_data')
,{
name: "$getVar('obs.label.' + series4)",
data: [ $getChartData(series4, column) ]
Expand Down
Loading

0 comments on commit 83a7f32

Please sign in to comment.