Skip to content

Commit

Permalink
fix scigallery urls
Browse files Browse the repository at this point in the history
  • Loading branch information
captn3m0 committed Apr 1, 2024
1 parent 1469f33 commit 18d6385
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scigallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import datetime
import re
import os
from urllib.parse import urlencode

event_type_mapper = {
"Film": "ScreeningEvent",
Expand Down Expand Up @@ -84,7 +85,7 @@ def make_event(e, ts):
"startDate": ts.isoformat(),
"description": e["blurb"],
"duration": parse_duration(e["duration"]),
"url": "https://carbon.scigalleryblr.org/programmes?p=" + e["uid"],
"url": "https://carbon.scigalleryblr.org/programmes?" + urlencode({"p":e["uid"]}),
"performer": [{"@type": "Person", "name": expert} for expert in experts],
"maximumAttendeeCapacity": e["capacity"],
"organizer": {
Expand Down

0 comments on commit 18d6385

Please sign in to comment.