Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
fix: we want to release.. (empty trigger for semantic release)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKohler committed Jun 14, 2019
1 parent 5c5afb2 commit c0e3a95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions scripts/exporter.js
Expand Up @@ -8,7 +8,8 @@ import {
import * as validation from '../shared/validation';
import * as cleanup from '../shared/cleanup';

const CV_LANGUAGES_URL = 'https://raw.githubusercontent.com/mozilla/voice-web/master/locales/all.json';
import { getAllLanguages } from '../shared/languages';
// const CV_LANGUAGES_URL = 'https://raw.githubusercontent.com/mozilla/voice-web/master/locales/all.json';
const OUTPUT_JSON = 'sentence-collector.json';
const OUTPUT_TXT = 'sentence-collector.txt';

Expand All @@ -20,8 +21,9 @@ const LANGUAGE_MAPPING = {

export async function startExport(db, exportPath) {
const startTime = Date.now();
const cvResponse = await fetch(CV_LANGUAGES_URL);
const allCVLanguages = await cvResponse.json();
// const cvResponse = await fetch(CV_LANGUAGES_URL);
// const allCVLanguages = await cvResponse.json();
const allCVLanguages = getAllLanguages().map((lang) => lang.code);

for (const languageCode of allCVLanguages) {
await exportLanguage(db, languageCode, exportPath);
Expand Down
2 changes: 1 addition & 1 deletion shared/db/collections/sentences-meta.js
Expand Up @@ -258,7 +258,7 @@ export default class SentencesMeta {

async getAllValidatedSentences(language) {
const filters = {};
filters.approved = true;
// filters.approved = true;
const collection = await this.getCollection(language);

let { data, hasNextPage, next } = await collection.listRecords({ filters });
Expand Down

0 comments on commit c0e3a95

Please sign in to comment.