Oops, fix missing return statement.
This commit is contained in:
parent
42cef093a5
commit
f5a126d3bc
1 changed files with 1 additions and 1 deletions
|
@ -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 = []
|
||||||
|
|
Loading…
Reference in a new issue