import os import tinydb from tinydb import TinyDB, Query import random import marcy #import moviedbfiller moviestorage = "storage/moviedb.json" moviedb = TinyDB(moviestorage) for theEID in range(1, len(moviedb) + 1): if moviedb.contains(eids=[theEID]): m = dict(moviedb.get(eid=theEID)) if marcy.taskdb.search(Query()["taskName"] == ("Watch " + m["filmName"])) == []: marcy.makeTask(taskName=("Watch " + m["filmName"]), taskDesc="http://www.imdb.com/title/" + m["imdbID"] + "/", goals="selfcare", taskTypes=["watch"], timeEst=m["filmLength"], pEffective=0.7, taskKind="fun") marcy.bigRecalc() print(str(marcy.taskdb.all())) marcy.getNeededTask(180, "fun")
#import essential things import os import tinydb from tinydb import TinyDB, Query import random from ast import literal_eval import marcy #should be APV. marcy.makeTask(taskName = "kill urself", taskKind = "work", timeEst = 60, moneyNet = -(marcy.usableMoney), goals = ["selfcare"], pEffective = 0.8, taskTypes = ["do"]) #should be APV. marcy.makeTask(taskName = "f**k a duck", taskKind = "fun", timeEst = 23, dependencies = ["amAdult"], pEffective = 0.4) #should be APV. marcy.makeTask(taskName = "go to furrycon 2016", taskKind = "fun", timeEst = 360, moneyNet = -60, goals = ["selfcare", "comms"], pEffective = 0.8, taskTypes = ["bewith", "watch"], buildsCC = True) #should be APV. marcy.makeTask(taskName = "watch driftwood", taskKind = "work", timeEst = 45, goals = ["selfcare"], pEffective = 0.9, taskTypes = ["watch"]) #should be APV. marcy.makeTask(taskName = "ultimate showdown with Chris", taskKind = "fun", timeEst = 180, dependencies = ["notOnCampus"], goals = ["biz", "selfcare"], pEffective = 0.5, taskTypes = ["bewith", "tell", "train"]) #should be APV. marcy.makeTask(taskName = "become bo burnham", taskKind = "work", timeEst = 15, repeats = 0, goals = ["comms"], pEffective = 0.2, taskTypes = ["make", "edit", "listen", "watch", "do"], buildsCC = True) marcy.bigRecalc() marcy.markCompleted(3) marcy.bigRecalc() marcy.makeTask(taskName = "wew", taskKind = "work", timeEst = 9, goals = ["selfcare"], pEffective = 0.99) a = marcy.getNeededTask(12*60, "either")
#import essential things import os import subprocess import tinydb from tinydb import TinyDB, Query import random import marcy marcy.makeTask(taskName = "eat shit", taskDesc = "you know who you are", timeEst = 20, taskKind = "fun", goals = ["selfcare", 'ai', "biz", "comms"], buildsCC = True) print(str(marcy.taskdb))
#import shit import marcy import os import tinydb from tinydb import TinyDB, Query from datetime import date, timedelta import calendar import random marcy.runAllHelpers() #make first task. should have same apv. marcy.makeTask(taskKind="fun", taskName="smoke weed", taskDesc="you", timeEst=15, taskTypes=["do", "train"], goals=["selfcare", "biz"], moneyNet=1.50, pEffective=0.8) #make second task. should have same apv. marcy.makeTask(taskKind="work", taskName="smoke dick", taskDesc="the guy she tells you not to worry about", timeEst=10, taskTypes=["play", "listen"], goals=["selfcare", "comms"], canInterrupt=True, pEffective=0.8) marcy.bigRecalc()
#import shit import marcy import os import tinydb from tinydb import TinyDB, Query import random marcy.runAllHelpers() #make first task. should be obviously better BUT more expensive. marcy.makeTask(taskName="buy a safe", taskDesc="buy.", goals=["ai", "selfcare", "biz", "comms"], timeEst=30, taskKind="work", taskTypes=[ "edit", "bewith", "train", "read", "play", "make", "tell", "ask", "watch", "listen", "do" ], canInterrupt=True, moneyNet=-100) #make second task. this one is obviously worse, but also actually affordable. marcy.makeTask(taskName="buy a book", taskDesc="also buy.", goals=["ai", "selfcare", "biz", "comms"], timeEst=30, taskKind="work") marcy.bigRecalc() marcy.getNeededTask(30, "work")