Compare commits
4 commits
0d0770802c
...
113594915a
| Author | SHA1 | Date | |
|---|---|---|---|
| 113594915a | |||
| 0de22db5d6 | |||
| 691c6fd136 | |||
| fa42623c8a |
4 changed files with 12 additions and 3 deletions
|
|
@ -19,4 +19,13 @@ class Migration(migrations.Migration):
|
|||
old_name='json',
|
||||
new_name='cache',
|
||||
),
|
||||
migrations.RunSQL(
|
||||
"""UPDATE item_item SET cache = jsonb_set(cache, '{created}', cache->'created'->'__value__', true) WHERE cache @> '{"created": {"__class__": "datetime.datetime"}}'"""
|
||||
),
|
||||
migrations.RunSQL(
|
||||
"""UPDATE item_item SET cache = jsonb_set(cache, '{accessed}', cache->'accessed'->'__value__', true) WHERE cache @> '{"accessed": {"__class__": "datetime.datetime"}}'"""
|
||||
),
|
||||
migrations.RunSQL(
|
||||
"""UPDATE item_item SET cache = jsonb_set(cache, '{modified}', cache->'modified'->'__value__', true) WHERE cache @> '{"modified": {"__class__": "datetime.datetime"}}'"""
|
||||
),
|
||||
]
|
||||
|
|
|
|||
|
|
@ -881,7 +881,7 @@ def poster(request, id, size=None):
|
|||
poster_height=item.poster_height,
|
||||
poster_width=item.poster_width,
|
||||
icon=item.icon.name,
|
||||
json=item.json()
|
||||
cache=item.json()
|
||||
)
|
||||
if item.poster and os.path.exists(item.poster.path):
|
||||
return image_to_response(item.poster, size)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,6 @@ django-extensions==2.0.7
|
|||
gunicorn==19.8.1
|
||||
html5lib
|
||||
requests==2.19.1
|
||||
tornado==5.0.2
|
||||
tornado<5
|
||||
geoip2==2.9.0
|
||||
youtube-dl
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ if __name__ == "__main__":
|
|||
run('./bin/pip', 'install', '-r', 'requirements.txt')
|
||||
update_service('pandora-encoding')
|
||||
update_service('pandora-tasks')
|
||||
if old < 5972:
|
||||
if old < 5975:
|
||||
run('./bin/pip', 'install', '-r', 'requirements.txt')
|
||||
else:
|
||||
if len(sys.argv) == 1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue