formatting

This commit is contained in:
Gardient
2021-09-22 19:24:48 +03:00
parent aeb8916744
commit 98a8747821
6 changed files with 19 additions and 9 deletions

View File

@@ -1,12 +1,13 @@
import os
import click
import click
from flask import current_app
from flask.cli import with_appcontext
from werkzeug.exceptions import MethodNotAllowed, NotFound
from .target_exchange.models import TargetExchange
@click.command()
def clean():
"""Remove *.pyc and *.pyo files recursively starting at current directory.
@@ -39,7 +40,7 @@ def urls(url, order):
try:
rule, arguments = (
current_app.url_map.bind('localhost')
.match(url, return_rule=True))
.match(url, return_rule=True))
rows.append((rule.rule, rule.endpoint, arguments))
column_length = 3
except (NotFound, MethodNotAllowed) as e:
@@ -82,6 +83,7 @@ def urls(url, order):
for row in rows:
click.echo(str_template.format(*row[:column_length]))
@click.command()
@with_appcontext
def seed():