Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Sep 5, 2020
1 parent 06ce55f commit d2209ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion slack_cleaner2/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,9 @@ def list(
api = slack.api.files
slack.log.debug("list all files(user=%s, after=%s, before=%s, types=%s, channel=%s", user, after, before, types, channel)

files = slack.safe_paginated_api(lambda kw: api.get('files.list', params=dict(user=user, ts_from=after, ts_to=before, types=types, channel=channel, **kw)), "files", ["files:read"], "files.list")
def fetch(kwargs):
return api.get('files.list', params=dict(user=user, ts_from=after, ts_to=before, types=types, channel=channel, **kwargs))
files = slack.safe_paginated_api(fetch, "files", ["files:read"], "files.list")

for sfile in files:
yield SlackFile(sfile, slack.resolve_user(sfile["user"]), slack)
Expand Down

0 comments on commit d2209ab

Please sign in to comment.