Compare commits

..

No commits in common. "a963f93d524f09046fa3c259ccc610a89dd043e0" and "58812c787f38257d8fca238b51ed4fd12d237361" have entirely different histories.

2 changed files with 1 additions and 3 deletions

3
ext.py
View File

@ -177,8 +177,7 @@ class Quotas:
def get_left(self, capacity): def get_left(self, capacity):
for quota in self.data['results']: for quota in self.data['results']:
if quota['id'] == ROOM_MAP[capacity]: if quota['id'] == ROOM_MAP[capacity]:
return quota['available_number'] return quota['available_number']
return 0
async def get_quotas(request: Request=None): async def get_quotas(request: Request=None):
async with httpx.AsyncClient() as client: async with httpx.AsyncClient() as client:

View File

@ -3,4 +3,3 @@ sanic-ext
httpx httpx
Pillow Pillow
aztec_code_generator aztec_code_generator
jinja2