using async job to calculate predicted age records and store in db
This commit is contained in:
@@ -9,21 +9,6 @@
|
||||
src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js'>
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(function($) {
|
||||
console.log('loading script');
|
||||
console.log('{{ recalc }}');
|
||||
if ('{{ recalc }}' == 'True') {
|
||||
theurl = '/rowers/ajax_agegroup/{{ age }}/{{ weightcategory }}/{{ sex }}/{{ user.id }}'
|
||||
console.log(theurl);
|
||||
$.getJSON(window.location.protocol + '//'+window.location.host + theurl, function(json) {
|
||||
location.reload();
|
||||
});
|
||||
} else {
|
||||
console.log('No need to reload');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
Reference in New Issue
Block a user