better graph building (routing to be fixed) using points with no room or no level
This commit is contained in:
parent
e2a13e7f27
commit
f0a2f5e058
5 changed files with 96 additions and 79 deletions
|
@ -13,15 +13,6 @@ class Command(BaseCommand):
|
|||
parser.add_argument('--no-lines', action='store_const', dest='lines', const=False, default=True,
|
||||
help='dont draw lines on the graph image')
|
||||
|
||||
parser.add_argument('--transfer-points', action='store_const', const=True, default=False,
|
||||
help='highlight transfer points')
|
||||
|
||||
parser.add_argument('--transfer-lines', action='store_const', const=True, default=False,
|
||||
help='draw in-room transfer lines')
|
||||
|
||||
def handle(self, *args, **options):
|
||||
graph = Graph.load()
|
||||
if options['transfer_points'] or options['transfer_lines']:
|
||||
graph.build_router()
|
||||
graph.draw_pngs(points=options['points'], lines=options['lines'],
|
||||
transfer_points=options['transfer_points'], transfer_lines=options['transfer_lines'])
|
||||
graph.draw_pngs(points=options['points'], lines=options['lines'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue