diff options
author | Linnea Gräf <nea@nea.moe> | 2024-10-27 21:18:57 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-10-27 21:18:57 +0100 |
commit | 5c7f1f4e9677ed5794604b2835098e64294e5357 (patch) | |
tree | abdd709dd89c67a12057b4aafd99f9a7dcea1b5f /src/main/kotlin/moe/nea/ledger/LedgerLogger.kt | |
parent | 977620f1b5218cc8a041742f970974a4bfff29cc (diff) | |
download | LocalTransactionLedger-5c7f1f4e9677ed5794604b2835098e64294e5357.tar.gz LocalTransactionLedger-5c7f1f4e9677ed5794604b2835098e64294e5357.tar.bz2 LocalTransactionLedger-5c7f1f4e9677ed5794604b2835098e64294e5357.zip |
Fix money-ledger folder not being created for db
Fixes https://github.com/nea89o/LocalTransactionLedger/issues/1
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/LedgerLogger.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/ledger/LedgerLogger.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt b/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt index 6ac3244..03d306c 100644 --- a/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt +++ b/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt @@ -119,7 +119,7 @@ class LedgerLogger { val gson = Gson() - val folder = File("money-ledger").also { it.mkdirs() } + val folder = Ledger.dataFolder val file: File = run { val date = SimpleDateFormat("yyyy.MM.dd").format(Date()) |