diff options
author | syn <isaqtm@gmail.com> | 2020-03-23 10:42:48 +0300 |
---|---|---|
committer | syn <isaqtm@gmail.com> | 2020-03-23 10:42:48 +0300 |
commit | 27bccdea5d5e376fdecb27b03f692408a2cc1f99 (patch) | |
tree | 99f927303fa7bb1928c0e5c5ae7b400c74790148 /app/views.py | |
parent | 3ff1340efb5956c9b417c6e03c6bab5684dda384 (diff) | |
download | blure-27bccdea5d5e376fdecb27b03f692408a2cc1f99.tar.gz |
* Fix hardcoded url
* Improve resizing
Diffstat (limited to 'app/views.py')
-rw-r--r-- | app/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views.py b/app/views.py index fcd3818..ef3bbd0 100644 --- a/app/views.py +++ b/app/views.py @@ -29,13 +29,13 @@ async def index(ctx): @db_route('/i/<url>') async def raw_image(ctx, url): async with NGXImage(blure.url.to_id(url)) as image: - return image.orig() + return image.send_image('o') @db_route('/t/<url>') async def thumb_image(ctx, url): async with NGXImage(blure.url.to_id(url)) as image: - return image.orig() + return image.send_image('m') @db_route('/p/<url>') |