diff --git a/photoapp/image.py b/photoapp/image.py index eba0eed..826e14f 100644 --- a/photoapp/image.py +++ b/photoapp/image.py @@ -104,9 +104,9 @@ def get_exif_data_fobj(fobj): def rational64u_to_hms(values): - return [Decimal(values[0][0]) / Decimal(values[0][1]), - Decimal(values[1][0]) / Decimal(values[1][1]), - Decimal(values[2][0]) / Decimal(values[2][1])] + return [Decimal(values[0].numerator) / Decimal(values[0].denominator), + Decimal(values[1].numerator) / Decimal(values[1].denominator), + Decimal(values[2].numerator) / Decimal(values[2].denominator)] def hms_to_decimal(values): diff --git a/requirements.txt b/requirements.txt index c13290d..71f1db6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,30 +1,31 @@ -appdirs==1.4.3 -backports.functools-lru-cache==1.5 -boto3==1.9.183 -botocore==1.12.183 -certifi==2019.6.16 +appdirs==1.4.4 +boto3==1.14.56 +botocore==1.17.56 +certifi==2020.6.20 chardet==3.0.4 -cheroot==6.5.2 -CherryPy==18.1.2 -contextlib2==0.5.5 -docutils==0.14 -idna==2.8 -jaraco.functools==1.20 -Jinja2==2.10.1 -jmespath==0.9.4 -MarkupSafe==1.0 -more-itertools==4.3.0 -Pillow==5.2.0 -portend==2.3 -PyMySQL==0.9.3 -python-dateutil==2.8.0 -python-magic==0.4.15 -pytz==2018.5 -requests==2.22.0 -s3transfer==0.2.1 -six==1.11.0 -SQLAlchemy==1.3.5 -tabulate==0.8.3 -tempora==1.13 -urllib3==1.25.3 -zc.lockfile==1.3.0 +cheroot==8.4.5 +CherryPy==18.6.0 +docutils==0.15.2 +idna==2.10 +jaraco.classes==3.1.0 +jaraco.collections==3.0.0 +jaraco.functools==3.0.1 +jaraco.text==3.2.0 +Jinja2==2.11.2 +jmespath==0.10.0 +MarkupSafe==1.1.1 +more-itertools==8.5.0 +Pillow==7.2.0 +portend==2.6 +PyMySQL==0.10.0 +python-dateutil==2.8.1 +python-magic==0.4.18 +pytz==2020.1 +requests==2.24.0 +s3transfer==0.3.3 +six==1.15.0 +SQLAlchemy==1.3.19 +tabulate==0.8.7 +tempora==4.0.0 +urllib3==1.25.10 +zc.lockfile==2.0