예제 #1
0
    def POST(self):
        data = web.input()

        auth_token = web.cookies().get('auth_token')
        # There are timestamp data associated with this specific image set. I
        # plan to elimitate this in the future
        date_strings = mow_utils.date_strings()
        response = mow_utils.feed_cycle(data, date_strings, auth_token)
        return response
예제 #2
0
파일: code.py 프로젝트: icecreamguy/mowmow
    def POST(self):
        data = web.input()

        auth_token = web.cookies().get('auth_token')
        # There are timestamp data associated with this specific image set. I 
        # plan to elimitate this in the future
        date_strings = mow_utils.date_strings()
        response = mow_utils.feed_cycle(data, date_strings, auth_token)
        return response
예제 #3
0
import sys
import os
os.chdir('/var/www/mowmow/')
sys.path.append('/var/www/mowmow/api')
sys.path.append('/var/www/mowmow/api/mowlib/')
import mow_utils
import config
from web import utils

db = config.db

print(status)
if status['fed']:
    print('Already fed')
else:
    print('Feeding')
    data = utils.storage(feed=1)
    mow_utils.feed_cycle(data, mow_utils.date_strings(), None, external=True)
예제 #4
0
import sys
import os
os.chdir('/var/www/mowmow/')
sys.path.append('/var/www/mowmow/api')
sys.path.append('/var/www/mowmow/api/mowlib/')
import mow_utils
import config
from web import utils

db = config.db

print(status)
if status['fed']:
    print('Already fed')
else:
    print('Feeding')
    data = utils.storage(feed = 1)
    mow_utils.feed_cycle(data, mow_utils.date_strings(), None, external=True)