Colors and styles; Live up and down with appwrite

This commit is contained in:
Ryan Pandya
2023-05-08 10:51:33 -07:00
parent 5aa0458097
commit 2b89338e85
9 changed files with 182 additions and 41 deletions
+1
View File
@@ -6,6 +6,7 @@ const sdk = require('node-appwrite')
const client = new sdk.Client()
const databases = new sdk.Databases(client)
const strftime = require('strftime')
const { entries } = require('./import.js')
client
.setEndpoint('http://ryanpandya.com:8080/v1') // Your API Endpoint
.setProject('lifetracker') // Your project ID
+4 -4
View File
@@ -22,10 +22,10 @@ var data = fs.readFileSync('data.csv')
var comments = entry.slice(27).filter(x => x != "").join().replace(/^"/,"").replace(/"$/,'')
var dbEntry = {
Date: date,
Hours: hours,
Mood: mood,
Comments: comments
date: date,
hours: hours,
mood: mood,
comments: comments
};
client
.setEndpoint('http://ryanpandya.com:8080/v1') // Your API Endpoint