Skip to content

Commit

Permalink
增加容错处理;改善页面展示(safari)
Browse files Browse the repository at this point in the history
  • Loading branch information
talebook committed Apr 1, 2024
1 parent 6d1c0cc commit fad79ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions app/src/pages/admin/books.vue
Expand Up @@ -38,7 +38,7 @@
</template>
<template v-slot:item.title="{ item }">
<v-edit-dialog large :return-value.sync="item.title" @save="save(item, 'title')" save-text="保存" cancel-text="取消">
<span class="three-lines" style="max-width: 200px">{{ item.title }}</span>
<span class="three-lines" style="max-width: 200px; min-width: 120px; ">{{ item.title }}</span>

<template v-slot:input>
<div class="mt-4 text-h6">修改字段</div>
Expand Down Expand Up @@ -150,13 +150,14 @@

<template v-slot:item.comments="{ item }">
<v-edit-dialog large :return-value.sync="item.comments" @save="save(item, 'comments')" save-text="保存" cancel-text="取消">
<span :title="item.comments" style="width: 300px" class="three-lines">{{ item.comments }}</span>
<span :title="item.comments" style="width: 300px" class="three-lines">{{ item.comments.substr(0, 80) }}</span>
<template v-slot:input>
<div class="mt-4 text-h6">修改字段</div>
<v-textarea v-model="item.comments" label="简介"></v-textarea>
</template>
</v-edit-dialog>
</template>

<template v-slot:item.actions="{ item }">
<v-menu offset-y right>
<template v-slot:activator="{ on }">
Expand Down
5 changes: 4 additions & 1 deletion webserver/services/autofill.py
Expand Up @@ -27,7 +27,10 @@ def auto_fill_all(self, idlist: list, qpm=60):
logging.info(_("忽略更新书籍 id=%d : 无需更新"), book_id)
continue
time.sleep(sleep_seconds)
self.do_fill_metadata(book_id, mi)
try:
self.do_fill_metadata(book_id, mi)
except Exception as err:
logging.error(_("执行异常: %s"), err)

@AsyncService.register_function
def auto_fill(self, book_id):
Expand Down

0 comments on commit fad79ca

Please sign in to comment.