Skip to content

Instantly share code, notes, and snippets.

@peterbe
Created August 22, 2019 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterbe/cb2a4eacbc87c2927828ebe97ee9ad50 to your computer and use it in GitHub Desktop.
Save peterbe/cb2a4eacbc87c2927828ebe97ee9ad50 to your computer and use it in GitHub Desktop.
import random
def show_sg_task_completion(request):
if not request.is_authenticated:
return random.random() <= 0.05
return False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment