Colors and styles; Live up and down with appwrite
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user