Skip to content

Commit

Permalink
Fixed SQL select in docs/guide/test_subgraph.py example
Browse files Browse the repository at this point in the history
  • Loading branch information
vmagamedov committed Dec 2, 2016
1 parent 859fb40 commit e15e467
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/test_subgraph.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# setup storage

from sqlalchemy import create_engine, MetaData, Table, Column
from sqlalchemy import Integer, Unicode, ForeignKey
from sqlalchemy import Integer, Unicode, ForeignKey, select

metadata = MetaData()

Expand Down Expand Up @@ -56,7 +56,7 @@ def maybe_direct_link(ids):

@pass_context
def to_characters_query(ctx):
query = character_table.select(character_table.c.id)
query = select([character_table.c.id])
return [row.id for row in ctx[SA_ENGINE_KEY].execute(query)]

_GRAPH = Graph([
Expand Down

0 comments on commit e15e467

Please sign in to comment.