You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
275 B
10 lines
275 B
4 months ago
|
from models.barcode_builders import BarcodeBuilders
|
||
|
|
||
|
|
||
|
async def get_barcode_index():
|
||
|
data = await BarcodeBuilders.get(id=1).values("id", "index")
|
||
|
return data.index
|
||
|
|
||
|
async def update_barcode_index(value):
|
||
|
await BarcodeBuilders.filter(id=1).update(index=value)
|