-
API calls to add rows to DB?
2025-09-24 20:18So here's my cleaned up (thanks claude) script, that adds a row, and uploads a file. But it for some reason cannot set attributes correctly?!
It sets the attributes when i dump the DB, but its not showing anything in the gui, the files are added but not showing in the gui, or in the attributes editor.
-
API calls to add rows to DB?
2025-09-24 19:54I can add data to the rows, I can see them in the DB dump when i curl but they dont show up in the gui?!
In short, what are the correct ways of setting attributes on a database table using curl?
-
Import from Logseq?
2024-10-06 15:09Ok so I made a small bash script to remove some Logseq specific formatting:
find $1 -type f -name ".md" | while read file; do
sed -i '/{{query/d' "$file" # This removes any embeds
sed -i '/{{embed/d' "$file" # This removes any embeds
sed -i '/{{renderer/d' "$file" # This removes any embeds
sed -i '/::/d' "$file" # This removes any tags/properties featuring ::
sed -i 's#../assets/#assets/#g' "$file"
sed -i 's/(([\a-f0-9-]{36}))//g' "$file" # This removes UUID like strings
sed -i 's/- (#+)/\1/g' "$file" # Removes "- #" Outline headers and replaces them with #
sed -i 's/{{video\s(http[s]?://[^}])}}/\1/g' "$file" #Removes the video tags
sed -i 's#(http[s]?://[^ ])#[\1](\1)#g' "$file" #Adds to any links that dont have itdone