Added missing dependency and cleared unnecessary lines

This commit is contained in:
moule3053 2018-08-20 13:50:52 +02:00
parent 83fe0bcc3d
commit 9877c0d3a5
3 changed files with 6 additions and 4 deletions

View File

@ -86,7 +86,7 @@
</tr>
<tr>
<td>Calls per day (last 30 days):</td>
<td>Calls per day:</td>
<td><img src="data:image/png;base64, {{ per_day_chart }}" alt="somealt" /></td>
</tr>
<tr>

View File

@ -601,8 +601,10 @@ class MetricsSummaryView(LoginRequiredMixin, TemplateView):
for api in top_apis:
api['Implemented_by_partial_function'] = api['Implemented_by_partial_function'] + '(' + api['implemented_in_version'] + ')'
top_apis = top_apis[:10]
# for api in top_apis:
# #print("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TOP APIS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
# print(str(top_apis.index(api) + 1) + "," + api['Implemented_by_partial_function'] + "," + str(api['count']))
top_apis = reversed(top_apis)
return top_apis
def get_top_warehouse_calls(self, cleaned_data, from_date, to_date):

View File

@ -1,4 +1,3 @@
#Django==1.11.7
Django==2.0.7
oauthlib==2.0.0
requests==2.11.1
@ -7,4 +6,5 @@ PyJWT==1.5.3
gunicorn==19.6.0
matplotlib
django-mathfilters
django-bootstrap3
django-bootstrap3
django-bootstrap-datepicker-plus