Skip to content

refactor: count and show number of Transforms in listing#46

Open
tendai-zw wants to merge 3 commits into
MaltegoTech:masterfrom
tendai-zw:master
Open

refactor: count and show number of Transforms in listing#46
tendai-zw wants to merge 3 commits into
MaltegoTech:masterfrom
tendai-zw:master

Conversation

@tendai-zw
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Collaborator

@crest42 crest42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

Comment thread maltego_trx/server.py Outdated
print(URL_TEMPLATE.replace("<transform_name>", path) + ": " + mapping[path].__name__)

for idx, path in enumerate(mapping):
print(f"{idx}: " + str({URL_TEMPLATE.replace("<transform_name>", path) + ": " + mapping[path].__name__}))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are mixing f-strings and concatination here. I would commit to f-strings

Comment thread maltego_trx/server.py Outdated
for path in mapping:
print(path + ": " + mapping[path].__name__)
for idx, path in enumerate(mapping):
print(f"{idx}: " + path + ": " + mapping[path].__name__)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants