update cron script -- mode is now auto
This commit is contained in:
parent
53e475a700
commit
245e837ae3
|
@ -401,6 +401,12 @@ class DatedListBase(models.Model):
|
||||||
help_text = _('if selected, show dates navigation per weeks instead '
|
help_text = _('if selected, show dates navigation per weeks instead '
|
||||||
'of show days equally around the current date')
|
'of show days equally around the current date')
|
||||||
)
|
)
|
||||||
|
hide_icons = models.BooleanField(
|
||||||
|
_('hide icons'),
|
||||||
|
default = False,
|
||||||
|
help_text = _('if selected, images of publications will not be '
|
||||||
|
'displayed in the list')
|
||||||
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
abstract = True
|
abstract = True
|
||||||
|
@ -409,6 +415,7 @@ class DatedListBase(models.Model):
|
||||||
MultiFieldPanel([
|
MultiFieldPanel([
|
||||||
FieldPanel('nav_days'),
|
FieldPanel('nav_days'),
|
||||||
FieldPanel('nav_per_week'),
|
FieldPanel('nav_per_week'),
|
||||||
|
FieldPanel('hide_icons'),
|
||||||
], heading=_('Navigation')),
|
], heading=_('Navigation')),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,6 @@ ul {
|
||||||
margin: 0.2em 1em;
|
margin: 0.2em 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
body > .top {
|
body > .top {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 10000000;
|
z-index: 10000000;
|
||||||
|
@ -137,6 +136,10 @@ body > .header {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
body section ul {
|
||||||
|
padding: 0em;
|
||||||
|
}
|
||||||
|
|
||||||
/** content: list & items **/
|
/** content: list & items **/
|
||||||
.list {
|
.list {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -249,8 +249,6 @@ function Player(id, on_air_url, show_cover) {
|
||||||
|
|
||||||
this.init_events();
|
this.init_events();
|
||||||
this.load();
|
this.load();
|
||||||
|
|
||||||
this.update_on_air();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Player.prototype = {
|
Player.prototype = {
|
||||||
|
|
|
@ -19,9 +19,7 @@ var sound = player.playlist.add(
|
||||||
);
|
);
|
||||||
sound.item.className += ' live';
|
sound.item.className += ' live';
|
||||||
player.playlist.select(sound, false);
|
player.playlist.select(sound, false);
|
||||||
|
player.update_on_air();
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -36,10 +36,12 @@
|
||||||
{# you might like to hide it by default -- this more for sections #}
|
{# you might like to hide it by default -- this more for sections #}
|
||||||
<h2>{{ day|date:'l d F' }}</h2>
|
<h2>{{ day|date:'l d F' }}</h2>
|
||||||
{% with item_date_format="H:i" %}
|
{% with item_date_format="H:i" %}
|
||||||
|
{% with list_no_cover=self.hide_icons %}
|
||||||
{% for item in list %}
|
{% for item in list %}
|
||||||
{% include "aircox_cms/snippets/date_list_item.html" %}
|
{% include "aircox_cms/snippets/date_list_item.html" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
{% endwith %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
# aircox daily tasks:
|
# aircox daily tasks:
|
||||||
# - diffusions monitoring for the current month
|
# - diffusions monitoring for the current month
|
||||||
export PATH="/srv/apps/aircox/venv/bin"
|
export PATH="/srv/apps/aircox/venv/bin"
|
||||||
/srv/apps/aircox/manage.py diffusions_monitor --update --clean --check
|
cd /srv/app/aircox/
|
||||||
|
scripts/launch_in_venv ./manage.py diffusions_monitor --update --clean --check --mode auto
|
||||||
# - diffusions monitoring for the next month
|
# - diffusions monitoring for the next month
|
||||||
/srv/apps/aircox/manage.py diffusions_monitor --update --next-month
|
scripts/launch_in_venv ./manage.py diffusions_monitor --update --next-month --mode auto
|
||||||
|
cd -
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user