Skip to content
Snippets Groups Projects
Commit 33c723ad authored by Robert Goldmann's avatar Robert Goldmann
Browse files

cleanup

parent b7335846
No related branches found
No related tags found
No related merge requests found
Pipeline #334 passed
......@@ -34,7 +34,6 @@ public class CategoryController extends BaseController
@RequestMapping("/categories")
public String categories(Model model)
{
helpers.test();
model.addAttribute("categories", categoryRepository.findAllByOrderByNameAsc());
return "categories/categories";
}
......
......@@ -304,19 +304,4 @@ public class HelpersService
{
return budgetMasterUpdateService.getAvailableVersionString();
}
public void test()
{
for(int i = 0; i < 1010; i++)
{
Transaction transaction = new Transaction();
transaction.setAccount(getCurrentAccount());
transaction.setDate(DateTime.now());
transaction.setAmount(100);
transaction.setCategory(categoryRepository.findByType(CategoryType.NONE));
transaction.setName("Eimer");
transactionService.getRepository().save(transaction);
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment