Merge pull request #564 from eventcally/issues/563

Add event place filter for API #563
This commit is contained in:
Daniel Grams 2024-01-27 11:22:24 +01:00 committed by GitHub
commit 5e17f64cc2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 20 additions and 3 deletions

View File

@ -9,5 +9,5 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-python@v4 - uses: actions/setup-python@v4
- uses: jamescurtin/isort-action@master - uses: jamescurtin/isort-action@master
- uses: psf/black@stable - uses: psf/black@23.3.0
- uses: TrueBrain/actions-flake8@v1.4.1 - uses: TrueBrain/actions-flake8@v1.4.1

View File

@ -6,7 +6,7 @@
"python.testing.pytestEnabled": true, "python.testing.pytestEnabled": true,
"[python]": { "[python]": {
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.organizeImports": true "source.organizeImports": "explicit"
} }
}, },
"[html]": { "[html]": {

View File

@ -320,6 +320,19 @@ class EventSearchRequestSchema(PaginationRequestSchema, TrackableRequestSchemaMi
"description": "Looks for events at this weekdays (0=Sunday, 1=Monday, ..)." "description": "Looks for events at this weekdays (0=Sunday, 1=Monday, ..)."
}, },
) )
organization_id = fields.Int(
metadata={"description": "Looks for events with this organization id."},
)
organizer_id = fields.Int(
metadata={"description": "Looks for events with this organizer id."},
)
event_place_id = fields.Int(
metadata={"description": "Looks for events with this event place id."},
)
event_list_id = fields.List(
fields.Int(),
metadata={"description": "Looks for events with this event list ids."},
)
sort = fields.Str( sort = fields.Str(
metadata={"description": "Sort result items."}, metadata={"description": "Sort result items."},
validate=validate.OneOf( validate=validate.OneOf(
@ -337,6 +350,10 @@ class EventSearchRequestSchema(PaginationRequestSchema, TrackableRequestSchemaMi
EnumField(EventStatus), EnumField(EventStatus),
metadata={"description": "Looks for events with this stati."}, metadata={"description": "Looks for events with this stati."},
) )
public_status = fields.List(
EnumField(PublicStatus),
metadata={"description": "Looks for events with this public stati."},
)
postal_code = fields.List( postal_code = fields.List(
fields.Str(), fields.Str(),
metadata={"description": "Looks for events with places with this postal code."}, metadata={"description": "Looks for events with places with this postal code."},