Update example source
This commit is contained in:
parent
255d84bc88
commit
ab6d55acd6
|
@ -8,14 +8,11 @@ or `--sources example:argument`.
|
||||||
from datetime import date
|
from datetime import date
|
||||||
import time
|
import time
|
||||||
|
|
||||||
# Globals
|
|
||||||
SOURCE = "examplesource"
|
|
||||||
|
|
||||||
|
|
||||||
def fetch_new(state, args):
|
def fetch_new(state, args):
|
||||||
now = date.today()
|
now = date.today()
|
||||||
item = create_item(
|
item = create_item(
|
||||||
SOURCE,
|
"example",
|
||||||
'{}-{}-{}'.format(now.year, now.month, now.day),
|
'{}-{}-{}'.format(now.year, now.month, now.day),
|
||||||
"Today is {}-{}-{}".format(now.year, now.month, now.day),
|
"Today is {}-{}-{}".format(now.year, now.month, now.day),
|
||||||
ts=time.time(),
|
ts=time.time(),
|
||||||
|
|
Loading…
Reference in New Issue