diff options
-rwxr-xr-x | kpov_judge/add_task.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kpov_judge/add_task.py b/kpov_judge/add_task.py index 9e25048..92e0c37 100755 --- a/kpov_judge/add_task.py +++ b/kpov_judge/add_task.py @@ -110,7 +110,7 @@ if __name__ == '__main__': else: for img in glob.glob(os.path.join(howto_dir, '*')): fname = os.path.basename(img) - with open(img) as f: + with open(img, 'rb') as f: db.howto_images.update({ 'task_id': task_id, 'class_id': class_id, |