inquisitor/sources/dummy.py

15 lines
258 B
Python
Raw Permalink Normal View History

2020-06-02 20:53:12 +00:00
"""
Generates a dummy item.
"""
# Standard library imports
from datetime import datetime
import random
def fetch_new(state):
item = {
'source': "dummy",
'id': '{:x}'.format(random.getrandbits(16 * 4)),
'title': str(datetime.now()),
}
return [item]