Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def clean_inactive_devices(f):
- """
- This turns as inactive to the unused devices
- """
- @wraps(f)
- def decorated(*args, **kwargs):
- # process anythin BEFORE
- results, device_tokens = f(*args, **kwargs)
- # process anythin AFTER
- return results, device_tokens
- return decorated
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement