hehe
This commit is contained in:
@ -76,7 +76,7 @@ def get_table_record(id, page_token=None):
|
||||
.field_names(["规格", "外库数量", "排序", "已盘"])
|
||||
.sort([Sort.builder()
|
||||
.field_name("排序")
|
||||
.desc(False)
|
||||
.desc(True)
|
||||
.build()
|
||||
])
|
||||
.automatic_fields(True)
|
||||
@ -166,6 +166,7 @@ def init_db():
|
||||
|
||||
youxin, page_token= get_table_record(application.config['YOUXIN_ID'])
|
||||
for i in youxin:
|
||||
print(i, page_token)
|
||||
inv = Inventory()
|
||||
inv.tag = i['tag']
|
||||
inv.amount = i['amount']
|
||||
@ -178,6 +179,7 @@ def init_db():
|
||||
if not youxin:
|
||||
break
|
||||
for i in youxin:
|
||||
print(i, page_token)
|
||||
inv = Inventory()
|
||||
inv.tag = i['tag']
|
||||
inv.amount = i['amount']
|
||||
|
Reference in New Issue
Block a user