pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/EuroPython/programapi/commit/91d6401037ebe141d0d5f84979ba6c7f0b634b46

="https://github.githubassets.com/assets/global-d18f184ea1a06a2c.css" /> Handle poster rooms: change Main Hall A|B|C to Exhibit Hall (#40) · EuroPython/programapi@91d6401 · GitHub
Skip to content

Commit 91d6401

Browse files
authored
Handle poster rooms: change Main Hall A|B|C to Exhibit Hall (#40)
1 parent 29b5a0a commit 91d6401

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

src/misc.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ class Room(Enum):
4646
north_hall = "North Hall"
4747
south_hall_2a = "South Hall 2A"
4848
south_hall_2b = "South Hall 2B"
49-
main_hall_a = "Main Hall A"
50-
main_hall_b = "Main Hall B"
51-
main_hall_c = "Main Hall C"
49+
exhibit_hall = "Exhibit Hall"
5250

5351

5452
class EventType(Enum):

src/models/europython.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from datetime import date, datetime
44

5-
from pydantic import BaseModel, Field, computed_field, model_validator
5+
from pydantic import BaseModel, Field, computed_field, field_validator, model_validator
66

77
from src.config import Config
88
from src.misc import EventType, Room, SpeakerQuestion, SubmissionQuestion
@@ -143,6 +143,13 @@ class EuroPythonSession(BaseModel):
143143
prev_session: str | None = None
144144
slot_count: int = Field(..., exclude=True)
145145

146+
@field_validator("room", mode="before")
147+
@classmethod
148+
def handle_poster_room(cls, value) -> str | None:
149+
if value and "Main Hall" in value:
150+
return "Exhibit Hall"
151+
return value
152+
146153
@computed_field
147154
def website_url(self) -> str:
148155
return (

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy