add protocol version, reset migrations, move db
This commit is contained in:
parent
e14c686dac
commit
046af0e777
32 changed files with 424 additions and 907 deletions
|
|
@ -83,7 +83,8 @@ class ReaderHandler(OMLHandler):
|
|||
self.set_status(404)
|
||||
self.finish()
|
||||
return
|
||||
item.sort_accessed = item.accessed = datetime.utcnow()
|
||||
item.sort_timesaccessed = item.timesaccessed = (item.timesaccessed or 0) + 1
|
||||
item.accessed = datetime.utcnow()
|
||||
item.timesaccessed = (item.timesaccessed or 0) + 1
|
||||
item.update_sort()
|
||||
item.save()
|
||||
return serve_static(self, os.path.join(settings.static_path, html), 'text/html')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue