Example #1
0
    public void UpdateCategoriesQuestions()
    {
        var savedCategories = DataService.GetAllCategories();

        foreach (var category in savedCategories)
        {
            var filePath = UsefullUtils.GetPathToStreamingAssetsFile(category.File + ".html");
            category.MaxLines = UsefullUtils.CountLinesInFile(filePath);
        }

        DataService.WriteCategoriesData(savedCategories, update: true);
    }