added operations
Build and Test / build-and-test-backend (push) Successful in 1m2s
Build and Test / build-and-test-frontend (push) Successful in 34s

This commit is contained in:
wt committed 2025-09-02 18:25:06 +07:00
1 parent 59f5a2cbc6
commit e16edd7744
6 files changed
+130 -11

No files matched your search

+7
View File
@@ -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])
}
}
}
}
}