diff options
author | neodarz <neodarz@neodarz.net> | 2019-02-03 20:02:18 +0100 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-02-03 20:02:18 +0100 |
commit | ad6212da067fdc05a8564e79943692fd9d466110 (patch) | |
tree | 7d83c4d90e7b0bb0260cf6dce39ea132761ebea8 /database/models.py | |
parent | c66ea291fe937a9b1321f5b3d417669b2aafa43b (diff) | |
download | khanindexer-ad6212da067fdc05a8564e79943692fd9d466110.tar.xz khanindexer-ad6212da067fdc05a8564e79943692fd9d466110.zip |
Add ability to update a page in db if updated
Diffstat (limited to '')
-rw-r--r-- | database/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/database/models.py b/database/models.py index 3727c93..a4c3f65 100644 --- a/database/models.py +++ b/database/models.py @@ -1,4 +1,4 @@ -from peewee import Model, CharField, TextField, PostgresqlDatabase +from peewee import Model, CharField, TextField, IntegerField, PostgresqlDatabase import config @@ -11,6 +11,7 @@ class Page(Model): url = CharField() title = CharField(null=True) content = TextField(null=True) + content_length = IntegerField() class Meta: database = db |