mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2024-05-17 07:32:33 +00:00
Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
Franzi | 3917fa65cf | ||
Franzi | 81494bed54 | ||
Franzi | 819e8ea2aa |
60
.github/workflows/style.yml
vendored
60
.github/workflows/style.yml
vendored
|
@ -18,14 +18,14 @@ jobs:
|
|||
name: isort
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
- name: install gettext
|
||||
run: sudo apt install gettext
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v1
|
||||
- name: Set up Python 3.12
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.8
|
||||
- uses: actions/cache@v1
|
||||
python-version: 3.12
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
|
||||
|
@ -41,14 +41,14 @@ jobs:
|
|||
name: flake8
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
- name: install gettext
|
||||
run: sudo apt install gettext
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v1
|
||||
- name: Set up Python 3.12
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.8
|
||||
- uses: actions/cache@v1
|
||||
python-version: 3.12
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
|
||||
|
@ -65,14 +65,14 @@ jobs:
|
|||
name: black
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
- name: install gettext
|
||||
run: sudo apt install gettext
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v1
|
||||
- name: Set up Python 3.12
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.8
|
||||
- uses: actions/cache@v1
|
||||
python-version: 3.12
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
|
||||
|
@ -89,14 +89,14 @@ jobs:
|
|||
name: docformatter
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
- name: install gettext
|
||||
run: sudo apt install gettext
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v1
|
||||
- name: Set up Python 3.12
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.8
|
||||
- uses: actions/cache@v1
|
||||
python-version: 3.12
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
|
||||
|
@ -113,14 +113,14 @@ jobs:
|
|||
name: djhtml
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
- name: install gettext
|
||||
run: sudo apt install gettext
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v1
|
||||
- name: Set up Python 3.12
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.8
|
||||
- uses: actions/cache@v1
|
||||
python-version: 3.12
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
|
||||
|
@ -137,14 +137,14 @@ jobs:
|
|||
# name: packaging
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# - uses: actions/checkout@v4
|
||||
# - name: install gettext
|
||||
# run: sudo apt install gettext
|
||||
# - name: Set up Python 3.8
|
||||
# uses: actions/setup-python@v1
|
||||
# - name: Set up Python 3.12
|
||||
# uses: actions/setup-python@v5
|
||||
# with:
|
||||
# python-version: 3.8
|
||||
# - uses: actions/cache@v1
|
||||
# python-version: 3.12
|
||||
# - uses: actions/cache@v4
|
||||
# with:
|
||||
# path: ~/.cache/pip
|
||||
# key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
|
||||
|
|
|
@ -15,9 +15,11 @@ class BroadcastToolsEventInfoView(View):
|
|||
"room-info": {
|
||||
"lower_info": self.request.event.settings.broadcast_tools_room_info_lower_content
|
||||
or "",
|
||||
"show_next_talk": True
|
||||
if self.request.event.settings.broadcast_tools_room_info_show_next_talk
|
||||
else False,
|
||||
"show_next_talk": (
|
||||
True
|
||||
if self.request.event.settings.broadcast_tools_room_info_show_next_talk
|
||||
else False
|
||||
),
|
||||
},
|
||||
"slug": self.request.event.slug,
|
||||
"start": self.request.event.date_from.isoformat(),
|
||||
|
|
|
@ -53,12 +53,14 @@ class BroadcastToolsScheduleView(EventPermissionRequired, ScheduleMixin, View):
|
|||
person.get_display_name()
|
||||
for person in talk.submission.speakers.all()
|
||||
],
|
||||
"track": {
|
||||
"color": talk.submission.track.color,
|
||||
"name": str(talk.submission.track.name),
|
||||
}
|
||||
if talk.submission.track
|
||||
else None,
|
||||
"track": (
|
||||
{
|
||||
"color": talk.submission.track.color,
|
||||
"name": str(talk.submission.track.name),
|
||||
}
|
||||
if talk.submission.track
|
||||
else None
|
||||
),
|
||||
"room": room["name"].localize(schedule.event.locale),
|
||||
"infoline": infoline.format(
|
||||
**placeholders(
|
||||
|
|
Loading…
Reference in a new issue