Skip to content

Commit

Permalink
feat: 批量相册下载
Browse files Browse the repository at this point in the history
  • Loading branch information
Coooolfan committed Nov 22, 2024
1 parent 6484f1c commit fa4debd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/model/album.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
from peewee import Model, IntegerField, CharField
from peewee import Model, IntegerField, CharField, BooleanField

from src.model.db import db


class Album(Model):
id = IntegerField(primary_key=True)
media_count = IntegerField(default=0)
name = CharField()
# 当 selected 为 True 时,表示用户选择了该相册,将会在非交互式任务中下载
selected = BooleanField(default=False)

class Meta:
database = db
Expand Down

0 comments on commit fa4debd

Please sign in to comment.