Skip to content

Instantly share code, notes, and snippets.

@jakul
Created September 30, 2013 10:56
Show Gist options
  • Save jakul/6762179 to your computer and use it in GitHub Desktop.
Save jakul/6762179 to your computer and use it in GitHub Desktop.
update_mongodb(cur_week_key, metric,
month_value_jobs_cur_filled,
month_value_jobs_prev_filled)
update_mongodb(
cur_week_key, metric, month_value_jobs_cur_filled,
month_value_jobs_prev_filled
)
favourite_month_jobs_cur_filled = int(1.0 * favourite_month_jobs_cur_filled
/ month_value_jobs_cur_filled * 100)
favourite_month_jobs_cur_filled = int(
1.0 * favourite_month_jobs_cur_filled / month_value_jobs_cur_filled * 100
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment