Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. def clean_inactive_devices(f):
  2. """
  3. This turns as inactive to the unused devices
  4. """
  5. @wraps(f)
  6. def decorated(*args, **kwargs):
  7. # process anythin BEFORE
  8. results, device_tokens = f(*args, **kwargs)
  9. # process anythin AFTER
  10. return results, device_tokens
  11. return decorated
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement