added operations
This commit is contained in:
1 parent
59f5a2cbc6
commit
e16edd7744
6 files changed
+130
-11
No files matched your search
@@ -51,6 +51,13 @@ func InitDatabase() {
|
||||
CreateCategory(&default_categories[j])
|
||||
}
|
||||
}
|
||||
if os.Getenv("DEFAULT_OPERATIONS_FILE") != "" {
|
||||
default_operations := GetOperationsFromFile(os.Getenv("DEFAULT_OPERATIONS_FILE"))
|
||||
for j := range default_operations {
|
||||
default_operations[j].UserID = allusers[i].ID
|
||||
CreateOperation(&default_operations[j])
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user