Skip to content

Conversation

@zghp
Copy link
Contributor

@zghp zghp commented Oct 20, 2025

No description provided.

query = query.filter(Device.tags.contains(tags))
slot = query.first()
if not slot:
return json({"message": "No free slot matches the criteria"}, status=404)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No sure 404 is correct here. It probably should be some form of 500 error.

This error also gets suppressed by the client and isn't displayed, which would be nice to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update allocate_slot to support ID/platform allocation with defaults

2 participants