Commit 90f146a4 authored by Landon DeCoito's avatar Landon DeCoito

added appmethods.p to hold general methods. Includes updatebothdbs method and...

added appmethods.p to hold general methods. Includes updatebothdbs method and testprint method for schedule testing
parent aa69f03b
# app imports
from parscript import load_data
from getconnectedscript import load_getconn_data
import redisactions as f
# python imports
import json
# attempts to update both dbs and returns true if successful
def updatebothdbs():
livesuccess = f.livedbfill(json.dumps(load_data(), ensure_ascii=False))
gcsuccess = f.gcdbfill(json.dumps(load_getconn_data(), ensure_ascii=False))
print "DBs updated.\n25Live: " + str(livesuccess) \
+ "\nGC: " + str(gcsuccess)
return livesuccess and gcsuccess
def testprint():
print "Schedule action completed!"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment