From 8cb2512b7e1d2ea1d66627ba4d3091c83a7c9407 Mon Sep 17 00:00:00 2001 From: Rachel Shorey Date: Wed, 3 Jun 2015 11:16:48 -0400 Subject: [PATCH] int division switched to // to stay out of python3 danger zone --- scripts/unlock_bad_photos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/unlock_bad_photos.py b/scripts/unlock_bad_photos.py index 0dc5041013..2cc4181ae9 100644 --- a/scripts/unlock_bad_photos.py +++ b/scripts/unlock_bad_photos.py @@ -17,7 +17,7 @@ def unlock(person): print("{_id} - {photo_url}".format(**person)) - if requests.get(person['photo_url']).status_code / 100 == 2: + if requests.get(person['photo_url']).status_code // 100 == 2: return # Right, we've got a photo_url, but it sucks. Let's go and unlock