[go: up one dir, main page]

File: settings.py

package info (click to toggle)
cozy 1.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,140 kB
  • sloc: python: 8,014; xml: 392; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 363 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
from peewee import CharField, BooleanField, ForeignKeyField, IntegerField

from cozy.db.model_base import ModelBase
from cozy.db.book import Book

DB_VERSION = 10


class Settings(ModelBase):
    path = CharField()
    first_start = BooleanField(default=True)
    last_played_book = ForeignKeyField(Book, null=True)
    version = IntegerField(default=DB_VERSION)