Skip to content

Instantly share code, notes, and snippets.

@javi830810
Created November 18, 2014 15:53
Show Gist options
  • Save javi830810/9a44a4a870f86caa0987 to your computer and use it in GitHub Desktop.
Save javi830810/9a44a4a870f86caa0987 to your computer and use it in GitHub Desktop.
params['completed_percent'] = int(round((float(completed_min) / float(total_min)) * 100)) if total_min else 0
@javi830810
Copy link
Author

or something like that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment