Oops, fix missing return statement.

master
voussoir 2018-03-10 15:42:23 -08:00
parent 42cef093a5
commit f5a126d3bc
1 changed files with 1 additions and 1 deletions

View File

@ -1230,7 +1230,7 @@ class PhotoDB(
def _normalize_new_photo_ratelimit(new_photo_ratelimit): def _normalize_new_photo_ratelimit(new_photo_ratelimit):
if isinstance(new_photo_ratelimit, (int, float)): if isinstance(new_photo_ratelimit, (int, float)):
new_photo_ratelimit = ratelimiter.Ratelimiter(allowance=1, period=new_photo_ratelimit) new_photo_ratelimit = ratelimiter.Ratelimiter(allowance=1, period=new_photo_ratelimit)
new_photo_ratelimit return new_photo_ratelimit
def create_or_fetch_photos(files): def create_or_fetch_photos(files):
photos = [] photos = []