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

Fixed #198 - database import also imports category NONE and rest

parent 9cba3a8d
Branches
Tags
1 merge request!213merge v1_6_0 into master
...@@ -46,6 +46,11 @@ public class DatabaseImporter ...@@ -46,6 +46,11 @@ public class DatabaseImporter
{ {
for(Category currentCategory : categories) for(Category currentCategory : categories)
{ {
if(currentCategory.getID() == 1 || currentCategory.getID() == 2)
{
continue;
}
Category existingCategory = handler.getCategory(currentCategory.getName(), currentCategory.getColor()); Category existingCategory = handler.getCategory(currentCategory.getName(), currentCategory.getColor());
if(existingCategory == null) if(existingCategory == null)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment