Compare commits
2 Commits
58812c787f
...
a963f93d52
Author | SHA1 | Date |
---|---|---|
Ed | a963f93d52 | |
Ed | fec10740a4 |
1
ext.py
1
ext.py
|
@ -178,6 +178,7 @@ class Quotas:
|
||||||
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:
|
||||||
|
|
|
@ -3,3 +3,4 @@ sanic-ext
|
||||||
httpx
|
httpx
|
||||||
Pillow
|
Pillow
|
||||||
aztec_code_generator
|
aztec_code_generator
|
||||||
|
jinja2
|
||||||
|
|
Loading…
Reference in New Issue