mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 10:09:02 +00:00
compact database task: fix formatting
This commit is contained in:
parent
ef56488349
commit
1a360a4eaa
|
@ -39,9 +39,9 @@ defmodule Mix.Tasks.CompactDatabase do
|
||||||
max = Repo.aggregate(Activity, :max, :id)
|
max = Repo.aggregate(Activity, :max, :id)
|
||||||
Logger.info("Considering #{max} activities")
|
Logger.info("Considering #{max} activities")
|
||||||
|
|
||||||
chunks = 0..(round(max / 100))
|
chunks = 0..round(max / 100)
|
||||||
|
|
||||||
Enum.each(chunks, fn (i) ->
|
Enum.each(chunks, fn i ->
|
||||||
min = i * 100
|
min = i * 100
|
||||||
max = min + 100
|
max = min + 100
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue