Пример #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
    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/')
sys.path.append('/var/www/mowmow/mowlib/')
import mow_utils
import config
from web import utils

status = mow_utils.get_status(None)

if status['fed']:
    print('Already fed')
else:
    print('Feeding')
    data = utils.storage(feed=1)
    print(
        mow_utils.feed_cycle(data,
                             mow_utils.date_strings(),
                             None,
                             external=True))
Пример #5
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)