Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Commit

Permalink
Add a load_preferences method in the util module
Browse files Browse the repository at this point in the history
This can then be used for caching the users' preferences in the
consumer or the worker.
  • Loading branch information
pypingou committed Jun 21, 2016
1 parent 485fc46 commit 90aca51
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fmn/consumer/util.py
Expand Up @@ -36,3 +36,12 @@ def get_fas_email(config, username):
except Exception:
log.exception("Failed to get FAS email for %r" % username)
return '%s@fedoraproject.org' % username


def load_preferences(args):
session, config, valid_paths = args
return fmn.lib.load_preferences(
session, config, valid_paths,
cull_disabled=True,
cull_backends=['desktop']
)

0 comments on commit 90aca51

Please sign in to comment.