Skip to content
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.

Bug 1146897 - Generate the list of all json files being exported #37

Merged
merged 1 commit into from
Sep 28, 2015

Conversation

sylvestre
Copy link
Collaborator

No description provided.

for rule in app.url_map.iter_rules():
url = str(rule)
if url.endswith(".json"):
links.append((url.replace("/json/", ""), url))
Copy link
Contributor

Choose a reason for hiding this comment

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

url.replace() looks fragile to me. Can you replace it with os.path.basename(url)? Also I'd reverse the order in the tuple (url, filename) so you it looks LTR in the template.

@sylvestre sylvestre force-pushed the export-list-file branch 2 times, most recently from d6cb2df to 832d962 Compare September 28, 2015 14:13
rail pushed a commit that referenced this pull request Sep 28, 2015
Bug 1146897 - Generate the list of all json files being exported
@rail rail merged commit 52fc09a into mozilla-releng:master Sep 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants