Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lecture materials
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
generic software skills
lecture materials
Merge requests
!40
Catch breaks/holidays during creation of lecture calendar
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Catch breaks/holidays during creation of lecture calendar
revise-ical
into
main
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Lukas Kluft
requested to merge
revise-ical
into
main
11 months ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
This addresses
#8 (closed)
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
57029ae4
1 commit,
11 months ago
1 file
+
4
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
scripts/md2ical.py
+
4
−
0
Options
@@ -23,6 +23,10 @@ def extract_lecture_dates(markdown_file, output_file):
for
table_entry
in
soup
.
findAll
(
"
tr
"
)[
1
:]:
date
,
title
,
lecturers
=
[
e
.
contents
[
0
]
for
e
in
table_entry
.
findAll
(
"
td
"
)]
if
lecturers
==
"
-
"
:
# Table entries without lecturer are considered to be breaks/holidays.
continue
# Define lecture start/end. Needs to be adapated every semester!
dt
=
datetime
.
strptime
(
date
,
"
%Y-%m-%d
"
)
lecture_start
=
datetime
(
dt
.
year
,
dt
.
month
,
dt
.
day
,
13
)
Loading