Skip to content

Commit

Permalink
Merge branch 'master' into celery
Browse files Browse the repository at this point in the history
  • Loading branch information
StanGirard committed Jul 23, 2020
2 parents 99f15b1 + 1fb107e commit 4855f38
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Dockerfile - this is a comment. Delete me if you want.
FROM python:3.7
COPY . /app
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ I've grown tired of SEO agencies making us pay hundreds of euros for simple tool
## Why you need it


- It's **free** to use, easy and open source. No credit cards required.
- It's **free**, easy and open source.
- It has a growing list of features
- It's easy to install

Expand Down
2 changes: 1 addition & 1 deletion toolkit/routes/graphs/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import time

import urllib
from urllib.parse import urlparse
from toolkit.controller.graphs.core import generate_graph_internal_link_interactive
from toolkit.lib.api_tools import generate_answer
from toolkit.celeryapp.tasks import GraphsGenerate
Expand All @@ -27,7 +28,6 @@ def get_post_graphs():
time.sleep(0.3)
results = Graphs.query.all()
result_arr= {"results":[]}
print(result_arr)
for i in results:
result_arr["results"].append({"id": i.id, "urls": i.urls, "status_job": i.status_job,"task_id": i.task_id, "begin_date": i.begin_date})
return generate_answer(data=result_arr)
Expand Down
4 changes: 2 additions & 2 deletions toolkit/routes/graphs/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def graphs_get():
if request.method == "POST":
results = post_request_api("/api/graphs", request.form)
else:
results= get_request_api("/api/graphs")
return render_template("graphs/graphs_all.jinja2", result=results["results"])
results = get_request_api("/api/graphs")
return render_template("graphs/graphs_all.jinja2", result=results["results"], error=results["error"])

@app.route('/graphs/<id>', methods=["GET"])
def graphs_get_by_id(id):
Expand Down
4 changes: 2 additions & 2 deletions toolkit/templates/graphs/graphs_all.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<button class="btn btn-primary" type="submit" id="submit">Submit</button>
</div>
</form>
{% if error %}
{% if error is not none%}
<div class="alert alert-danger" role="alert">
{{error.limit}}
{{error}}
</div>
{% endif %}

Expand Down

0 comments on commit 4855f38

Please sign in to comment.