A command line (CLI) program for monitoring and downloading 8chan threads. Licensed under MIT.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

db_model.py 564B

12345678910111213141516171819202122232425
  1. from peewee import *
  2. from lizard.file_io import path_to_database
  3. db = SqliteDatabase(path_to_database())
  4. class Thread(Model):
  5. original_url = CharField()
  6. board = CharField()
  7. thread_no = CharField()
  8. anchored_reply = CharField()
  9. oldest_new_reply = CharField(null=True)
  10. last_refreshed = IntegerField()
  11. last_seen = IntegerField()
  12. last_reply_time = IntegerField()
  13. new_replies = IntegerField(default=0)
  14. is_up = IntegerField(default=1)
  15. replies_to_anchored = IntegerField(default=0)
  16. class Meta:
  17. database = db