rest - fixed socketio import
This commit is contained in:
parent
0d63630c99
commit
c50dfdda85
3 changed files with 3 additions and 4 deletions
|
@ -15,7 +15,6 @@ public class CoreObservableGraph<V, E> extends ObservableGraph<V, E> {
|
|||
|
||||
@Override
|
||||
public boolean addEdge(E e, V v1, V v2, EdgeType edgeType) {
|
||||
logger.info("graph adding edge: {} - {}", v1, v2);
|
||||
if (v1 == null || v2 == null) {
|
||||
return false;
|
||||
}
|
||||
|
@ -24,7 +23,6 @@ public class CoreObservableGraph<V, E> extends ObservableGraph<V, E> {
|
|||
|
||||
@Override
|
||||
public boolean addEdge(E e, V v1, V v2) {
|
||||
logger.info("graph adding edge: {} - {}", v1, v2);
|
||||
if (v1 == null || v2 == null) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -358,6 +358,7 @@ public class NetworkGraph {
|
|||
}
|
||||
|
||||
public void addLink(CoreLink link) {
|
||||
logger.info("adding session link: {}", link);
|
||||
link.setId(linkId++);
|
||||
CoreNode nodeOne = nodeMap.get(link.getNodeOne());
|
||||
CoreNode nodeTwo = nodeMap.get(link.getNodeTwo());
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from flask.ext.socketio import SocketIO, emit
|
||||
from flask_socketio import SocketIO
|
||||
|
||||
from core import logger
|
||||
|
||||
|
|
Loading…
Reference in a new issue