From e11e0923e5fa4dce07abcbfd431e83f853fe917d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=81=A24=2E435km/s?= <54017765+CoolZxp@users.noreply.github.com> Date: Mon, 20 Nov 2023 19:46:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DDb=E5=AF=B9py3.9=E4=BB=A5?= =?UTF-8?q?=E4=B8=8B=E7=89=88=E6=9C=AC=E5=85=BC=E5=AE=B9=E6=80=A7=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#700)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- biliup/database/db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/biliup/database/db.py b/biliup/database/db.py index 5373839..c885e59 100644 --- a/biliup/database/db.py +++ b/biliup/database/db.py @@ -2,6 +2,7 @@ import time from datetime import datetime, timedelta from playhouse.shortcuts import model_to_dict from peewee import OperationalError +from typing import List from .models import StreamerInfo, FileList, db, logger, TempStreamerInfo @@ -121,7 +122,7 @@ class DB: ) @classmethod - def get_file_list(cls, database_row_id: int) -> list[str]: + def get_file_list(cls, database_row_id: int) -> List[str]: """获取视频文件列表""" file_list = StreamerInfo.get_by_id_(database_row_id).file_list return [file.file for file in file_list]