more schedule monkey patching
This commit is contained in:
parent
9f47835763
commit
aba70cc961
1 changed files with 12 additions and 2 deletions
|
@ -52,6 +52,8 @@ def patch_conference_schedule():
|
|||
update_presentation(request, slot_data, presentation)
|
||||
elif slot.kind.label.lower() == "keynote":
|
||||
update_keynote(request, slot_data)
|
||||
elif slot.kind.label.lower() == "housekeeping":
|
||||
update_keynote(request, slot_data)
|
||||
else:
|
||||
pass
|
||||
|
||||
|
@ -80,12 +82,13 @@ def patch_conference_schedule():
|
|||
author_name = speaker
|
||||
author_email, author_twitter_id = values
|
||||
|
||||
slot_data["name"] = "Keynote"
|
||||
slot_data["authors"] = [author_name]
|
||||
slot_data["contact"] = [
|
||||
author_email
|
||||
] if request.user.is_staff else ["redacted"]
|
||||
slot_data["abstract"] = "Keynote presentation from North Bay Python 2017"
|
||||
slot_data["description"] = "Keynote presentation from North Bay Python 2017"
|
||||
slot_data["abstract"] = "Keynote presentation from North Bay Python 2017 by " + author_name
|
||||
slot_data["description"] = "Keynote presentation from North Bay Python 2017 by " + author_name
|
||||
slot_data["conf_url"] = "https://2017.northbaypython.org"
|
||||
slot_data["cancelled"] = False
|
||||
slot_data["reviewers"] = ""
|
||||
|
@ -93,4 +96,11 @@ def patch_conference_schedule():
|
|||
slot_data["twitter_id"] = author_twitter_id
|
||||
slot_data["released"] = True
|
||||
|
||||
def update_housekeeping(request, slot_data):
|
||||
slot_data["authors"] = ["North Bay Python"]
|
||||
slot_data["contact"] = [
|
||||
"spam@northbaypython.org"
|
||||
] if request.user.is_staff else ["redacted"]
|
||||
|
||||
|
||||
sv._schedule_json = schedule_json
|
||||
|
|
Loading…
Reference in a new issue