Skip to content

Commit

Permalink
Updated graphing paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
TaaviE committed Dec 31, 2017
1 parent 97a1f91 commit fac46c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ ENV/
genitive.json
graph.json
ids.json
graph.png
secretgraph.png
graph*.png
secret*.png
config.py
notes
__pycache__
Expand Down
6 changes: 3 additions & 3 deletions jolod.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def graph():
family_group = family_obj.group
return render_template("graph.html",
id="number " + str(session["user_id"]),
image=str(family_group) + ".png")
image="graph"+str(family_group) + ".png")


@app.route("/settings")
Expand Down Expand Up @@ -479,7 +479,7 @@ def regraph():
for source, destination in copy.deepcopy(families_shuf_ids).items():
digraph.add_edges_from([(source, destination)])

save_graph(digraph, "./static/" + str(family_group) + ".png")
save_graph(digraph, "./static/graph" + str(family_group) + ".png")
del digraph
rerendernamegraph() # create the graph with names

Expand Down Expand Up @@ -512,7 +512,7 @@ def rerender():
for source, destination in copy.deepcopy(families_shuf_ids).items():
digraph.add_edges_from([(source, destination)])

save_graph(digraph, "./static/graph.png")
save_graph(digraph, "./static/graph"".png")
return render_template("success.html", action="Genereeritud", link="./notes")


Expand Down
Binary file removed static/graph.png
Binary file not shown.

0 comments on commit fac46c6

Please sign in to comment.