Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1806)

Unified Diff: chrome/common/extensions/docs/server2/api_data_source.py

Issue 1038993002: Docserver: Fix API refresh task names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/app.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/api_data_source.py
diff --git a/chrome/common/extensions/docs/server2/api_data_source.py b/chrome/common/extensions/docs/server2/api_data_source.py
index c28984cc0e62f77d153e675919dd08553debbee1..98408a3e0d908437615edf893f99c21cdab07225 100644
--- a/chrome/common/extensions/docs/server2/api_data_source.py
+++ b/chrome/common/extensions/docs/server2/api_data_source.py
@@ -11,6 +11,7 @@ from file_system import FileNotFoundError
from future import Future, All
from jsc_view import CreateJSCView, GetEventByNameFromEvents
from platform_util import GetPlatforms
+from third_party.json_schema_compiler.model import UnixName
class APIDataSource(DataSource):
@@ -87,7 +88,7 @@ class APIDataSource(DataSource):
def GetRefreshPaths(self):
tasks = []
for platform in GetPlatforms():
- tasks += ['%s/%s' % (platform, api)
+ tasks += ['%s/%s' % (platform, UnixName(api))
for api in
self._platform_bundle.GetAPIModels(platform).GetNames()]
return tasks
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/app.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698